Class XmlWrapper

    • Constructor Detail

      • XmlWrapper

        public XmlWrapper()
    • Method Detail

      • getLocalName

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

        public void setLocalName​(java.lang.String localName)
      • 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.
        Specified by:
        getPrefix in interface XmlNode
        Returns:
        the namespace prefix
      • setPrefix

        public void setPrefix​(java.lang.String prefix)
      • 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.
        Specified by:
        getNamespace in interface XmlNode
        Returns:
        the XML namespace of this node
      • setNamespace

        public void setNamespace​(java.lang.String namespace)
      • 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.
        Specified by:
        isNamespaceAware in interface XmlNode
        Returns:
        true if this node uses a namespace for matching and formatting this node
      • setNamespaceAware

        public void setNamespaceAware​(boolean namespaceAware)
      • isNillable

        public boolean isNillable()
        Description copied from interface: XmlNode
        Returns whether this node is nillable.
        Specified by:
        isNillable in interface XmlNode
        Returns:
        true if this node is nillable
      • setNillable

        public void setNillable​(boolean nillable)
      • isRepeating

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

        public void setRepeating​(boolean repeating)
      • isOptional

        public boolean isOptional()
        Description copied from interface: Parser
        Returns whether this node must exist during unmarshalling.
        Specified by:
        isOptional in interface Parser
        Overrides:
        isOptional in class DelegatingParser
        Returns:
        true if this node is optional during unmarshalling, false otherwise
      • setLazy

        public void setLazy​(boolean lazy)