Interface XMLMetaData

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    XMLClassMetaData, XMLFieldMetaData

    public interface XMLMetaData
    extends java.io.Serializable
    Describe metadata about an xml type.
    Since:
    1.0.0
    Author:
    Catalina Wei
    • Method Detail

      • isXmlRootElement

        boolean isXmlRootElement()
        Return true if mapping on an XmlRootElement.
      • isXmlElement

        boolean isXmlElement()
        Return true if mapping on an XmlElement.
      • isXmlAttribute

        boolean isXmlAttribute()
        Return true if mapping on an XmlAttribute.
      • getFieldMapping

        XMLMetaData getFieldMapping​(java.lang.String name)
        Return XMLMapping for a given field.
        Parameters:
        name - the field name.
        Returns:
        XMLMapping.
      • setType

        void setType​(java.lang.Class type)
        Set type.
      • getType

        java.lang.Class getType()
        Return type.
      • getTypeCode

        int getTypeCode()
        Return type code.
      • getName

        java.lang.String getName()
        Return the mapping name.
      • getXmlname

        java.lang.String getXmlname()
        Return xml element tag name or xml attribute name.
      • getXmlnamespace

        java.lang.String getXmlnamespace()
        Return xml namespace.
      • setName

        void setName​(java.lang.String name)
        Set field name.
        Parameters:
        name - the field name.
      • setXmlname

        void setXmlname​(java.lang.String name)
        Set xml element or attribute name.
        Parameters:
        name - the element name or attribute name
      • setXmlnamespace

        void setXmlnamespace​(java.lang.String namespace)
        Set namespace.
      • setXmltype

        void setXmltype​(int type)
        Set xmltype
        Parameters:
        type - XMLTYPE, ELEMENT, or ATTRIBUTE
      • getXmltype

        int getXmltype()
        Return xmltype
        Returns:
        xmltype
      • setXmlRootElement

        void setXmlRootElement​(boolean isXmlRootElement)
      • addField

        void addField​(java.lang.String name,
                      XMLMetaData field)