Class Section
java.lang.Object
org.apache.sling.provisioning.model.Traceable
org.apache.sling.provisioning.model.Commentable
org.apache.sling.provisioning.model.Section
An additional section in the provisioning model.
- Since:
- 1.4
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet all attributesGet the contents of the section.getName()
Get the name of the section.void
setContents
(String contents) Set the contents of the section.toString()
Methods inherited from class org.apache.sling.provisioning.model.Commentable
getComment, setComment
Methods inherited from class org.apache.sling.provisioning.model.Traceable
getLocation, setLocation
-
Constructor Details
-
Section
Construct a new feature.- Parameters:
name
- The feature name
-
-
Method Details
-
getName
Get the name of the section.- Returns:
- The name or
null
for an anonymous feature.
-
getAttributes
Get all attributes- Returns:
- The map of attributes.
-
getContents
Get the contents of the section.- Returns:
- The contents or
null
.
-
setContents
Set the contents of the section.- Parameters:
contents
- The new contents.
-
toString
- Overrides:
toString
in classCommentable
-