| 
 | 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.parser.format.xml.XmlFieldFormat
org.beanio.internal.parser.format.xml.XmlAttributeField
public class XmlAttributeField
A FieldFormat for a field in an XML formatted stream parsed as
 an attribute of its parent.
| 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 | |
|---|---|
| XmlAttributeField()Constructs a new XmlAttributeField. | |
| Method Summary | |
|---|---|
|  String | extractText(XmlUnmarshallingContext context)Extracts a field from a record during unmarshalling. | 
|  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. | 
|  void | insertText(XmlMarshallingContext ctx,
           String fieldText)Inserts a field into the record during marshalling. | 
|  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 field is nillable. | 
|  boolean | isRepeating()Returns whether this node may repeat in the context of its immediate parent. | 
|  void | setLocalName(String localName)Sets the attribute name. | 
|  void | setNamespace(String namespace)Sets the namespace of the attribute (typically null). | 
|  void | setNamespaceAware(boolean namespaceAware)Sets whether this attribute uses a namespace. | 
|  void | setPrefix(String prefix)Sets the prefix to use for this attribute's namespace. | 
| Methods inherited from class org.beanio.internal.parser.format.xml.XmlFieldFormat | 
|---|
| extract, getName, getPadding, getSize, insertField, insertValue, isLazy, setLazy, setName, setPadding, toParamString, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public XmlAttributeField()
| Method Detail | 
|---|
public String extractText(XmlUnmarshallingContext context)
XmlFieldFormat
extractText in class XmlFieldFormatcontext - the XmlUnmarshallingContext holding the record
public void insertText(XmlMarshallingContext ctx,
                       String fieldText)
XmlFieldFormat
insertText in class XmlFieldFormatctx - the XmlMarshallingContext holding the recordfieldText - the field text to insertpublic int getType()
XmlNode
XmlNode.XML_TYPE_NONE,
   XmlNode.XML_TYPE_ELEMENT,
   XmlNode.XML_TYPE_ATTRIBUTE, or
   XmlNode.XML_TYPE_TEXTpublic String getLocalName()
XmlNode
public void setLocalName(String localName)
localName - the attribute namepublic String getNamespace()
XmlNode
public void setNamespace(String namespace)
namespace - the attribute namespacepublic String getPrefix()
XmlNode
public void setPrefix(String prefix)
prefix - the namespace prefixpublic boolean isNamespaceAware()
XmlNode
public void setNamespaceAware(boolean namespaceAware)
namespaceAware - true if this attribute uses a namespace, false otherwisepublic boolean isNillable()
FieldFormat
public boolean isRepeating()
XmlNode
| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||