Class Section
- java.lang.Object
-
- org.apache.sling.provisioning.model.Traceable
-
- org.apache.sling.provisioning.model.Commentable
-
- org.apache.sling.provisioning.model.Section
-
public class Section extends Commentable
An additional section in the provisioning model.- Since:
- 1.4
-
-
Constructor Summary
Constructors Constructor Description Section(java.lang.String name)
Construct a new feature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
getAttributes()
Get all attributesjava.lang.String
getContents()
Get the contents of the section.java.lang.String
getName()
Get the name of the section.void
setContents(java.lang.String contents)
Set the contents of the section.java.lang.String
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
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of the section.- Returns:
- The name or
null
for an anonymous feature.
-
getAttributes
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
Get all attributes- Returns:
- The map of attributes.
-
getContents
public java.lang.String getContents()
Get the contents of the section.- Returns:
- The contents or
null
.
-
setContents
public void setContents(java.lang.String contents)
Set the contents of the section.- Parameters:
contents
- The new contents.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classCommentable
-
-