Class JiBXDataSource

  • All Implemented Interfaces:
    org.apache.axiom.om.OMDataSource, org.apache.axiom.om.OMDataSourceExt, org.apache.axiom.om.QNameAwareOMDataSource

    public class JiBXDataSource
    extends org.apache.axiom.om.ds.AbstractPushOMDataSource
    implements org.apache.axiom.om.QNameAwareOMDataSource
    Data source for OM element backed by JiBX data bound object.
    • Constructor Detail

      • JiBXDataSource

        public JiBXDataSource​(org.jibx.runtime.IMarshallable obj,
                              org.jibx.runtime.IBindingFactory factory)
        Constructor from marshallable object and binding factory.
        Parameters:
        obj -
        factory -
      • JiBXDataSource

        public JiBXDataSource​(Object obj,
                              String mapping,
                              String name,
                              String uri,
                              String prefix,
                              int[] nsindexes,
                              String[] nsprefixes,
                              org.jibx.runtime.IBindingFactory factory)
        Constructor from object with mapping index and binding factory.
        Parameters:
        obj -
        mapping -
        name -
        uri -
        prefix -
        nsindexes -
        nsprefixes -
        factory -
    • Method Detail

      • getLocalName

        public String getLocalName()
        Specified by:
        getLocalName in interface org.apache.axiom.om.QNameAwareOMDataSource
      • getNamespaceURI

        public String getNamespaceURI()
        Specified by:
        getNamespaceURI in interface org.apache.axiom.om.QNameAwareOMDataSource
      • getPrefix

        public String getPrefix()
        Specified by:
        getPrefix in interface org.apache.axiom.om.QNameAwareOMDataSource
      • isDestructiveWrite

        public boolean isDestructiveWrite()
        Specified by:
        isDestructiveWrite in interface org.apache.axiom.om.OMDataSourceExt
      • getObject

        public Object getObject()
        Specified by:
        getObject in interface org.apache.axiom.om.OMDataSourceExt
        Overrides:
        getObject in class org.apache.axiom.om.ds.AbstractOMDataSource
      • copy

        public org.apache.axiom.om.OMDataSourceExt copy()
        Specified by:
        copy in interface org.apache.axiom.om.OMDataSourceExt
        Overrides:
        copy in class org.apache.axiom.om.ds.AbstractOMDataSource