public class OptionInfo extends DocumentedInfo
Constructor and Description |
---|
OptionInfo()
Constructor.
|
OptionInfo(DocumentationInfo documentation)
Constructor with a single documentation element.
|
OptionInfo(List<DocumentationInfo> documentations)
Constructor with a list of documentation elements.
|
OptionInfo(String documentation)
Constructor with a single documentation element.
|
Modifier and Type | Method and Description |
---|---|
String |
getValue()
Returns the value of this option element.
|
void |
setValue(String value)
Sets the value of this option element.
|
void |
updateNamespaces(Map<String,String> namespaces)
Completes the given map of namespaces with the namespaces used in the
documentation elements.
|
void |
writeElement(XmlWriter writer)
Writes the current object as an XML element using the given SAX writer.
|
getDocumentations, resolveNamespaces, setDocumentation, setDocumentation, setDocumentations
public OptionInfo()
public OptionInfo(DocumentationInfo documentation)
documentation
- A single documentation element.public OptionInfo(List<DocumentationInfo> documentations)
documentations
- The list of documentation elements.public OptionInfo(String documentation)
documentation
- A single documentation element.public String getValue()
public void setValue(String value)
value
- The value of this option element.public void updateNamespaces(Map<String,String> namespaces)
DocumentedInfo
updateNamespaces
in class DocumentedInfo
namespaces
- The given map of namespaces to complete.public void writeElement(XmlWriter writer) throws SAXException
writer
- The SAX writer.SAXException
Copyright © 2005–2015. All rights reserved.