@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 Component
public String getEditPath()
getEditPath
in interface Component
public org.apache.sling.api.resource.Resource getEditResource()
getEditResource
in interface Component
public org.apache.sling.api.resource.Resource getResource()
getResource
in interface Component
public boolean isContainer()
isContainer
in interface Component
public boolean isEditable()
isEditable
in interface Component
public boolean isReloadPage()
isReloadPage
in interface Component
public boolean isType(String type)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.