クラス XmlInfosetBuilderImpl


  • public class XmlInfosetBuilderImpl
    extends XmlInfosetBuilder
    Implementation of generic buuilder that uses XmlPull API to access current default XmlPullParser and XmlSerializer.
    作成者:
    Aleksander Slominski
    • コンストラクタの詳細

      • XmlInfosetBuilderImpl

        public XmlInfosetBuilderImpl()
    • メソッドの詳細

      • newDocument

        public XmlDocument newDocument​(String version,
                                       Boolean standalone,
                                       String characterEncoding)
        クラスからコピーされた説明: XmlInfosetBuilder
        Create a new document with given XML prolog.
        定義:
        newDocument クラス内 XmlInfosetBuilder
        パラメータ:
        version - a String
        standalone - a Boolean
        characterEncoding - a String
        戻り値:
        a XmlDocument
      • newFragment

        public XmlElement newFragment​(String elementName)
        クラスからコピーされた説明: XmlInfosetBuilder
        Create XML fragment that is not associated with any document.
        定義:
        newFragment クラス内 XmlInfosetBuilder
        パラメータ:
        elementName - name of element
        戻り値:
        a XmlElement
      • newFragment

        public XmlElement newFragment​(String elementNamespaceName,
                                      String elementName)
        クラスからコピーされた説明: XmlInfosetBuilder
        Create XML fragment that is not associated with any document.
        定義:
        newFragment クラス内 XmlInfosetBuilder
        パラメータ:
        elementNamespaceName - namespace of element
        elementName - name of element
        戻り値:
        a XmlElement
      • newFragment

        public XmlElement newFragment​(XmlNamespace elementNamespace,
                                      String elementName)
        クラスからコピーされた説明: XmlInfosetBuilder
        Create XML fragment that is not associated with any document.
        定義:
        newFragment クラス内 XmlInfosetBuilder
        パラメータ:
        elementNamespace - a XmlNamespace
        elementName - a String
        戻り値:
        a XmlElement
      • newNamespace

        public XmlNamespace newNamespace​(String namespaceName)
        クラスからコピーされた説明: XmlInfosetBuilder
        Create a new namespace that is not associated with any XML document.
        定義:
        newNamespace クラス内 XmlInfosetBuilder
        パラメータ:
        namespaceName - a String
        戻り値:
        a XmlNamespace
      • newNamespace

        public XmlNamespace newNamespace​(String prefix,
                                         String namespaceName)
        クラスからコピーされた説明: XmlInfosetBuilder
        Create a new namespace that is not associated with any XML document.
        定義:
        newNamespace クラス内 XmlInfosetBuilder
        パラメータ:
        prefix - a String
        namespaceName - a String
        戻り値:
        a XmlNamespace
      • parseItem

        public Object parseItem​(XmlPullParser pp)
        クラスからコピーされた説明: XmlInfosetBuilder
        Will convert current parser state into event rerpresenting XML infoset item:
        • START_Document: XmlDocument without root element
        • START_TAG: XmlElement without children
        • TEXT: String or XmlCHaracters depending on builder mode
        • additiona states to corresponding XML infoset items (when implemented!)
        定義:
        parseItem クラス内 XmlInfosetBuilder
      • serialize

        public void serialize​(Object item,
                              XmlSerializer serializer)
        クラスからコピーされた説明: XmlInfosetBuilder
        Serialize XML infoset item including serializing of children. If item is Collection all items in collection are serialized by recursively calling this function. This method assumes that item is either interface defined in XB1 API, class String, or that item implements XmlSerializable otherwise IllegalArgumentException is thrown.
        定義:
        serialize クラス内 XmlInfosetBuilder
      • serializeItem

        public void serializeItem​(Object item,
                                  XmlSerializer ser)
        クラスからコピーされた説明: XmlInfosetBuilder
        Serialize XML infoset item without serializing any of children. This method assumes that item is either interface defined in XB1 API, class String, or item that implements XmlSerializable otherwise IllegalArgumentException is thrown.
        定義:
        serializeItem クラス内 XmlInfosetBuilder