@Model(adaptables=org.apache.sling.api.resource.Resource.class,
adapters=org.apache.sling.cms.Component.class)
public class ComponentImpl
extends Object
implements Component
| Constructor and Description |
|---|
ComponentImpl(org.apache.sling.api.resource.Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String[] |
getComponentType() |
String |
getEditPath()
Returns the path for the editor for this resource if available
|
org.apache.sling.api.resource.Resource |
getEditResource()
Returns the resource for the editor for this resource if available
|
org.apache.sling.api.resource.Resource |
getResource() |
String |
getTitle() |
int |
hashCode() |
boolean |
isContainer() |
boolean |
isEditable() |
boolean |
isReloadPage() |
boolean |
isType(String type)
Returns true if the only component type on the component is the specified
type.
|
String |
toString() |
public ComponentImpl(org.apache.sling.api.resource.Resource resource)
public String[] getComponentType()
getComponentType in interface Componentpublic String getEditPath()
getEditPath in interface Componentpublic org.apache.sling.api.resource.Resource getEditResource()
getEditResource in interface Componentpublic org.apache.sling.api.resource.Resource getResource()
getResource in interface Componentpublic boolean isContainer()
isContainer in interface Componentpublic boolean isEditable()
isEditable in interface Componentpublic boolean isReloadPage()
isReloadPage in interface Componentpublic boolean isType(String type)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.