| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.beanio.internal.util.TreeNode<Component>
org.beanio.internal.parser.Component
org.beanio.internal.parser.ParserComponent
org.beanio.internal.parser.DelegatingParser
org.beanio.internal.parser.format.xml.XmlWrapper
public class XmlWrapper
| Field Summary | 
|---|
| Fields inherited from interface org.beanio.internal.parser.format.xml.XmlNode | 
|---|
| XML_TYPE_ATTRIBUTE, XML_TYPE_ELEMENT, XML_TYPE_NONE, XML_TYPE_TEXT | 
| Constructor Summary | |
|---|---|
| XmlWrapper()Constructs a new XmlWrapper. | |
| Method Summary | |
|---|---|
|  String | getLocalName()Returns the XML local name for this node. | 
|  String | getNamespace()Returns the namespace of this node. | 
|  String | getPrefix()Returns the namespace prefix for marshaling this node, or null if the namespace should override the default namespace. | 
|  int | getType()Returns the XML node type. | 
|  boolean | isLazy()Returns whether this node must exist during unmarshalling. | 
|  boolean | isNamespaceAware()Returns true if a namespace was configured for this node, and is therefore used to unmarshal and marshal the node. | 
|  boolean | isNillable()Returns whether this node is nillable. | 
|  boolean | isRepeating()Returns whether this node may repeat in the context of its immediate parent. | 
|  boolean | marshal(MarshallingContext context)Marshals a record. | 
|  boolean | matches(UnmarshallingContext context)Returns whether this parser and its children match a record being unmarshalled. | 
|  void | setLazy(boolean lazy) | 
|  void | setLocalName(String localName) | 
|  void | setNamespace(String namespace) | 
|  void | setNamespaceAware(boolean namespaceAware) | 
|  void | setNillable(boolean nillable) | 
|  void | setPrefix(String prefix) | 
|  void | setRepeating(boolean repeating) | 
| protected  void | toParamString(StringBuilder s)Called by TreeNode.toString()to append node parameters to the output. | 
|  boolean | unmarshal(UnmarshallingContext context)Unmarshals a record. | 
| Methods inherited from class org.beanio.internal.parser.DelegatingParser | 
|---|
| clearValue, getParser, getSize, getValue, hasContent, isIdentifier, setValue | 
| Methods inherited from class org.beanio.internal.parser.ParserComponent | 
|---|
| isSupportedChild | 
| Methods inherited from class org.beanio.internal.parser.Component | 
|---|
| registerLocals | 
| Methods inherited from class org.beanio.internal.util.TreeNode | 
|---|
| add, clone, find, getChildren, getFirst, getName, iterator, print, setName, size, sort, toString, updateReferences | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface org.beanio.internal.parser.Parser | 
|---|
| getName | 
| Constructor Detail | 
|---|
public XmlWrapper()
| Method Detail | 
|---|
public boolean matches(UnmarshallingContext context)
Parser
matches in interface Parsermatches in class DelegatingParsercontext - the UnmarshallingContext
public boolean unmarshal(UnmarshallingContext context)
Parser
unmarshal in interface Parserunmarshal in class DelegatingParsercontext - the UnmarshallingContext
public boolean marshal(MarshallingContext context)
                throws IOException
Parser
marshal in interface Parsermarshal in class DelegatingParsercontext - the MarshallingContext
IOException - if an I/O error occurspublic String getLocalName()
XmlNode
getLocalName in interface XmlNodepublic void setLocalName(String localName)
public String getPrefix()
XmlNode
getPrefix in interface XmlNodepublic void setPrefix(String prefix)
public String getNamespace()
XmlNode
getNamespace in interface XmlNodepublic void setNamespace(String namespace)
public boolean isNamespaceAware()
XmlNode
isNamespaceAware in interface XmlNodepublic void setNamespaceAware(boolean namespaceAware)
public boolean isNillable()
XmlNode
isNillable in interface XmlNodepublic void setNillable(boolean nillable)
public int getType()
XmlNode
getType in interface XmlNodeXmlNode.XML_TYPE_NONE,
   XmlNode.XML_TYPE_ELEMENT,
   XmlNode.XML_TYPE_ATTRIBUTE, or
   XmlNode.XML_TYPE_TEXTpublic boolean isRepeating()
XmlNode
isRepeating in interface XmlNodepublic void setRepeating(boolean repeating)
public boolean isLazy()
Parser
isLazy in interface ParserisLazy in class DelegatingParserpublic void setLazy(boolean lazy)
protected void toParamString(StringBuilder s)
TreeNodeTreeNode.toString() to append node parameters to the output.
toParamString in class TreeNode<Component>s - the output to append| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||