Class XmlElementField

    • Constructor Detail

      • XmlElementField

        public XmlElementField()
    • Method Detail

      • isRepeating

        public boolean isRepeating()
        Description copied from interface: XmlNode
        Returns whether this node may repeat in the context of its immediate parent.
        Returns:
        true if this node repeats, false otherwise
      • setRepeating

        public void setRepeating​(boolean repeating)
        Sets whether this element repeats within the context of its parent.
        Parameters:
        repeating - true if repeating, false otherwise
      • getLocalName

        public java.lang.String getLocalName()
        Description copied from interface: XmlNode
        Returns the XML local name for this node.
        Returns:
        the XML local name
      • setLocalName

        public void setLocalName​(java.lang.String localName)
        Sets the element name.
        Parameters:
        localName - the element name
      • getNamespace

        public java.lang.String getNamespace()
        Description copied from interface: XmlNode
        Returns the namespace of this node. If there is no namespace for this node, or this node is not namespace aware, null is returned.
        Returns:
        the XML namespace of this node
      • setNamespace

        public void setNamespace​(java.lang.String namespace)
        Sets the namespace of this element.
        Parameters:
        namespace - the namespace
      • getPrefix

        public java.lang.String getPrefix()
        Description copied from interface: XmlNode
        Returns the namespace prefix for marshaling this node, or null if the namespace should override the default namespace.
        Returns:
        the namespace prefix
      • setPrefix

        public void setPrefix​(java.lang.String prefix)
        Sets a prefix to use for the namespace during marshalling.
        Parameters:
        prefix - the namespace prefix
      • isNillable

        public boolean isNillable()
        Description copied from interface: FieldFormat
        Returns whether this field is nillable.
        Returns:
        true if nillable, false otherwise
      • setNillable

        public void setNillable​(boolean nillable)
        Sets whether this element is nillable.
        Parameters:
        nillable - true if nillable, false otherwise
      • isNamespaceAware

        public boolean isNamespaceAware()
        Description copied from interface: XmlNode
        Returns true if a namespace was configured for this node, and is therefore used to unmarshal and marshal the node.
        Returns:
        true if this node uses a namespace for matching and formatting this node
      • setNamespaceAware

        public void setNamespaceAware​(boolean namespaceAware)
        Sets whether this element is namespace aware.
        Parameters:
        namespaceAware - true if namespace aware, false otherwise