disciple.core
Class Path

java.lang.Object
  |
  +--disciple.core.Path
All Implemented Interfaces:
java.io.Serializable

public class Path
extends java.lang.Object
implements java.io.Serializable

WARNING! This class is not thread-safe!

See Also:
Serialized Form

Field Summary
protected  java.lang.String document_
           
protected  java.lang.String path_
           
protected  java.lang.String tempPath
           
 
Constructor Summary
Path()
           
Path(java.lang.String path)
           
Path(java.lang.String document, org.w3c.dom.Node node)
          Creates a Path object given the document name and the target element of the path.
Path(java.lang.String document, java.lang.String path)
           
 
Method Summary
 org.w3c.dom.Node applyTo(org.w3c.dom.Document document)
          Applies the path string to the document and returns the pointed node.
 boolean equals(java.lang.Object anObj)
           
 java.lang.String getDocument()
           
 java.lang.String getPath()
           
 void setDocument(java.lang.String document)
           
 void setPath(java.lang.String path)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

document_

protected java.lang.String document_

path_

protected java.lang.String path_

tempPath

protected transient java.lang.String tempPath
Constructor Detail

Path

public Path()

Path

public Path(java.lang.String path)

Path

public Path(java.lang.String document,
            java.lang.String path)

Path

public Path(java.lang.String document,
            org.w3c.dom.Node node)
Creates a Path object given the document name and the target element of the path.

Parameters:
document - The document name
Method Detail

setDocument

public void setDocument(java.lang.String document)

getDocument

public java.lang.String getDocument()

setPath

public void setPath(java.lang.String path)

getPath

public java.lang.String getPath()

equals

public boolean equals(java.lang.Object anObj)
Overrides:
equals in class java.lang.Object

applyTo

public org.w3c.dom.Node applyTo(org.w3c.dom.Document document)
Applies the path string to the document and returns the pointed node. WARNING! This method is not thread-safe!

Parameters:
document - - document to parse
Returns:
Node pointed by path. If no node is retrieved parsing the path, returns null.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright (c) 2003 Rutgers, The State University of New Jersey