@Model(adaptables=org.apache.sling.api.resource.Resource.class)
public class Component
extends java.lang.Object
| Constructor and Description |
|---|
Component(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 boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String[] getComponentType()
public java.lang.String getEditPath()
public org.apache.sling.api.resource.Resource getEditResource()
public org.apache.sling.api.resource.Resource getResource()
public java.lang.String getTitle()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isType(java.lang.String type)
type - 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.