@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 |
isEditable() |
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.Object
public java.lang.String[] getComponentType()
getComponentType
in interface org.apache.sling.cms.Component
public java.lang.String getEditPath()
getEditPath
in interface org.apache.sling.cms.Component
public org.apache.sling.api.resource.Resource getEditResource()
getEditResource
in interface org.apache.sling.cms.Component
public org.apache.sling.api.resource.Resource getResource()
getResource
in interface org.apache.sling.cms.Component
public java.lang.String getTitle()
getTitle
in interface org.apache.sling.cms.Component
public int hashCode()
hashCode
in class java.lang.Object
public boolean isEditable()
isEditable
in interface org.apache.sling.cms.Component
public boolean isType(java.lang.String type)
isType
in interface org.apache.sling.cms.Component
type
- the type of the resource to checkpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.