public static class ChoiceXmlObjectFactory.Option extends java.lang.Object implements XmlSinkWritable
Modifier and Type | Field and Description |
---|---|
XmlObjectFactory<?> |
_factory |
TagNodeId |
_id |
ARRAY_MAKER
Constructor and Description |
---|
ChoiceXmlObjectFactory.Option(MainXmlObjectFactory<?> factory) |
ChoiceXmlObjectFactory.Option(TagNodeId id,
XmlObjectFactory<?> factory) |
Modifier and Type | Method and Description |
---|---|
void |
mostToXml(XmlSink xmlSink,
java.lang.String relativeName,
XmlNameSpace nameSpace)
Causes instance to write itself to XML except that it doesn't
start the node nor writes the closing tag.
|
TagNodeId |
naturalTagNodeId()
When writing instances of this class, the id returned
by this function will be used unless alternative
identification is supplied.
|
public final TagNodeId _id
public final XmlObjectFactory<?> _factory
public ChoiceXmlObjectFactory.Option(TagNodeId id, XmlObjectFactory<?> factory)
public ChoiceXmlObjectFactory.Option(MainXmlObjectFactory<?> factory)
public TagNodeId naturalTagNodeId()
XmlSinkWritable
naturalTagNodeId
in interface XmlSinkWritable
public void mostToXml(XmlSink xmlSink, java.lang.String relativeName, XmlNameSpace nameSpace)
XmlSinkWritable
mostToXml
in interface XmlSinkWritable
xmlSink
- Where the XML is writtenrelativeName
- or simple node name. May not be needed but is available.nameSpace
- or null for simple node names. May not be needed but is available.