@Model(adaptables=org.apache.sling.api.resource.Resource.class,
adapters=org.apache.sling.cms.Component.class)
public class ComponentImpl
extends java.lang.Object
implements org.apache.sling.cms.Component
| Constructor and Description |
|---|
ComponentImpl(org.apache.sling.api.resource.Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String[] |
getComponentType() |
java.lang.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() |
java.lang.String |
getTitle() |
int |
hashCode() |
boolean |
isType(java.lang.String type)
Returns true if the only component type on the component is the specified
type.
|
java.lang.String |
toString() |
public ComponentImpl(org.apache.sling.api.resource.Resource resource)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String[] getComponentType()
getComponentType in interface org.apache.sling.cms.Componentpublic java.lang.String getEditPath()
getEditPath in interface org.apache.sling.cms.Componentpublic org.apache.sling.api.resource.Resource getEditResource()
getEditResource in interface org.apache.sling.cms.Componentpublic org.apache.sling.api.resource.Resource getResource()
getResource in interface org.apache.sling.cms.Componentpublic java.lang.String getTitle()
getTitle in interface org.apache.sling.cms.Componentpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isType(java.lang.String type)
isType in interface org.apache.sling.cms.Componenttype - the type of the resource to checkpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.