Class DOMParserPtr


  • public class DOMParserPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • DOMParserPtr

        public DOMParserPtr​(long cPtr,
                            boolean cMemoryOwn)
      • DOMParserPtr

        public DOMParserPtr()
        Default constructor yielding a NULL-pointer.
      • DOMParserPtr

        public DOMParserPtr​(DOMParser ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • getCPtr

        public static long getCPtr​(DOMParserPtr obj)
      • delete

        public void delete()
      • deref

        public DOMParser deref()
        The pointer stored in the object.
      • __ref__

        public DOMParser __ref__()
        Dereferencing operator.
      • getDeref

        public DOMParser getDeref()
        Member access operator.
      • equals

        public boolean equals​(DOMParser p)
      • isShared

        public boolean isShared()
        check if this Ptr has shared ownership or none
        ownership
        Returns:
        true if Ptr has shared ownership, false if it has no ownership.
      • isNull

        public boolean isNull()
        checks if the pointer is null
        Returns:
        Returns true if the pointer is null
      • load

        public void load​(java.lang.String filename)
        parse from file
        Parameters:
        filename - [in] name of file
      • load

        public void load​(SWIGTYPE_p_std__istream input)
        parse from stream
        Parameters:
        input - [in] input stream
      • save

        public void save​(java.lang.String filename)
        save DOM structure to file
        Parameters:
        filename - [in] filename
      • setSchema

        public void setSchema​(java.lang.String filename)
        specify the schema file

        Note: not all DOMParser implementations support schema validation
        Parameters:
        filename -
      • getRootElement

        public DOMElemPtr getRootElement()
        get the top/root element in the DOM structure
        Returns:
        root element of dom structure
      • setDebug

        public void setDebug​(boolean debug)
        Enable/disable debugging to the debug Log.
        Parameters:
        debug - [in] true to enable debug output.
      • make

        public DOMParserPtr make()
        make an instance of the default DOM parser
        Returns:
        a DOM parser for xml files