@ProviderType
public interface Component
Modifier and Type | Method and Description |
---|---|
@NotNull java.lang.String[] |
getComponentType()
Returns the type of the component.
|
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()
The underlying Sling Resource
|
java.lang.String |
getTitle()
Get the title of the component
|
boolean |
isEditable()
True if the component is editable, false otherwise.
|
boolean |
isType(java.lang.String type)
Returns true if the only component type on the component is the specified
type.
|
@NotNull @NotNull java.lang.String[] getComponentType()
java.lang.String getEditPath()
org.apache.sling.api.resource.Resource getEditResource()
org.apache.sling.api.resource.Resource getResource()
java.lang.String getTitle()
boolean isEditable()
boolean isType(java.lang.String type)
type
- the type of the resource to checkCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.