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