public class Section extends Object
Constructor and Description |
---|
Section(String name)
Create an instance with a given name.
|
Modifier and Type | Method and Description |
---|---|
void |
dump(PrintStream out)
Print the set values in this instance.
|
Set<String> |
getKeySet()
Retrieve the name of all properties of a section.
|
String |
getName()
Retrieve the name of the section.
|
String |
getProperty(String name)
Retrieve the value of a property.
|
void |
setProperty(String name,
String value)
Set a property and value.
|
public Section(String name)
name
- the name for the instance.public void setProperty(String name, String value)
name
- the name of the property.value
- the value for the property.public String getProperty(String name)
name
- the name of the property.public String getName()
public Set<String> getKeySet()
public void dump(PrintStream out)
out
- the opened PrintStream
to write the output.Copyright © 2014-2016 Regents University of California. All Rights Reserved.