public class Section extends Commentable
Constructor and Description |
---|
Section(java.lang.String name)
Construct a new feature.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Get all attributes
|
java.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() |
getComment, setComment
getLocation, setLocation
public Section(java.lang.String name)
name
- The feature namepublic java.lang.String getName()
null
for an anonymous feature.public java.util.Map<java.lang.String,java.lang.String> getAttributes()
public java.lang.String getContents()
null
.public void setContents(java.lang.String contents)
contents
- The new contents.public java.lang.String toString()
toString
in class Commentable
Copyright © 2022 The Apache Software Foundation. All rights reserved.