public abstract class ContentElement
extends java.lang.Object
ContentElement class is the base class for content elements
imported from a CQ4 system. Instances of this class are primarily created by
deserializing a Durbo input stream and must not be confused with the actual
ContentBus API content element
com.day.cq.contentbus.ContentElement.| Modifier | Constructor and Description |
|---|---|
protected |
ContentElement(ContentElement parent,
java.lang.String label)
Sets up this content element with the parent element and the label
|
| Modifier and Type | Method and Description |
|---|---|
abstract ContentElement |
getElement(java.lang.String label)
Returns the child element with the given label or
null if no
such child element exists. |
java.lang.String |
getJcrName()
Returns the name of the repository item used to reflect this content
element.
|
java.lang.String |
getLabel()
Returns the label of this content element, which is the unmapped original
label.
|
Page |
getPage()
Returns the
Page to which this content element belongs |
java.lang.String |
getQualident()
Returns the unmapped qualident of this content element.
|
protected ContentElement(ContentElement parent, java.lang.String label)
parent - The parent container or container list of this elementlabel - The label of this elementpublic java.lang.String getLabel()
getJcrName()public java.lang.String getQualident()
public java.lang.String getJcrName()
ContentBusNameMapper.atomToProperty method with the
label of this element.getLabel()public abstract ContentElement getElement(java.lang.String label)
null if no
such child element exists.label - The label of the child element to return