org.mindswap.xmlparser
Class XMLFile

java.lang.Object
  |
  +--org.mindswap.xmlparser.XMLFile

public class XMLFile
extends java.lang.Object


Constructor Summary
XMLFile(java.lang.String top, java.lang.String fn, java.util.Vector tags, Namespaces ns)
           
 
Method Summary
 Namespaces getNamespaces()
          Returns the Namespaces object associated with this file.

 java.util.Vector getTags()
          Returns the collection of tags (XMLTag) that make up this file.

 long getTimestamp()
          Returns the time in milliseconds when this file was created.

 java.lang.String getURI()
          The URI where this file is located.

 java.lang.String toString()
          Returns the XML representation of the file.

 java.lang.String toXML()
          Returns the XML representation of the file.

 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLFile

public XMLFile(java.lang.String top,
               java.lang.String fn,
               java.util.Vector tags,
               Namespaces ns)
Method Detail

getTimestamp

public long getTimestamp()
Returns the time in milliseconds when this file was created.

Returns:
time in milliseconds

getTags

public java.util.Vector getTags()
Returns the collection of tags (XMLTag) that make up this file.

Returns:
Vector of tags
See Also:
XMLTag

getURI

public java.lang.String getURI()
The URI where this file is located.

Returns:
URI as a string

getNamespaces

public Namespaces getNamespaces()
Returns the Namespaces object associated with this file.

Returns:
Namespace object populated with data from the file.
See Also:
Namespaces

toXML

public java.lang.String toXML()
Returns the XML representation of the file.

Returns:
A string containing the XML representation of this file
See Also:
toString()

toString

public java.lang.String toString()
Returns the XML representation of the file.

Overrides:
toString in class java.lang.Object
Returns:
A string containing the XML representation of this file
See Also:
toXML()