Class ComponentImpl
java.lang.Object
org.apache.sling.cms.core.internal.models.ComponentImpl
- All Implemented Interfaces:
Component
@Model(adaptables=org.apache.sling.api.resource.Resource.class,
adapters=org.apache.sling.cms.Component.class)
public class ComponentImpl
extends Object
implements Component
A model representing a sling:Component
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanString[]Returns the path for the editor for this resource if availableorg.apache.sling.api.resource.ResourceReturns the resource for the editor for this resource if availableorg.apache.sling.api.resource.ResourcegetTitle()inthashCode()booleanbooleanbooleanbooleanReturns true if the only component type on the component is the specified type.toString()
-
Constructor Details
-
ComponentImpl
public ComponentImpl(org.apache.sling.api.resource.Resource resource)
-
-
Method Details
-
equals
-
getComponentType
- Specified by:
getComponentTypein interfaceComponent- Returns:
- the componentType
-
getEditPath
Returns the path for the editor for this resource if available- Specified by:
getEditPathin interfaceComponent- Returns:
- the editor path or null
-
getEditResource
public org.apache.sling.api.resource.Resource getEditResource()Returns the resource for the editor for this resource if available- Specified by:
getEditResourcein interfaceComponent- Returns:
- the editor resource or null
-
getResource
public org.apache.sling.api.resource.Resource getResource()- Specified by:
getResourcein interfaceComponent- Returns:
- the resource
-
getTitle
-
hashCode
public int hashCode() -
isContainer
public boolean isContainer()- Specified by:
isContainerin interfaceComponent
-
isEditable
public boolean isEditable()- Specified by:
isEditablein interfaceComponent
-
isReloadPage
public boolean isReloadPage()- Specified by:
isReloadPagein interfaceComponent
-
isType
Returns true if the only component type on the component is the specified type. -
toString
-