com.ptc.windchill.structconf.xconf
Class ParseLocator

java.lang.Object
  extended bycom.ptc.windchill.structconf.xconf.ParseLocator
All Implemented Interfaces:
Comparable

public final class ParseLocator
extends Object
implements Comparable

Class to record locations in a xconf files.


Field Summary
private  String id_
           
private  boolean isDeclaration_
           
private  int lineNumber_
           
 
Constructor Summary
(package private) ParseLocator(String id, int line_number, boolean is_declaration)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 String getId()
           
 int getLineNumber()
           
 String getPathWithoutFileProtocol()
          If the id is a file url, return the path with out the file:/ prefix.
 int hashCode()
           
 boolean isDeclaration()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id_

private final String id_

lineNumber_

private final int lineNumber_

isDeclaration_

private final boolean isDeclaration_
Constructor Detail

ParseLocator

ParseLocator(String id,
             int line_number,
             boolean is_declaration)
Method Detail

getId

public final String getId()

getLineNumber

public final int getLineNumber()

isDeclaration

public final boolean isDeclaration()

toString

public String toString()

hashCode

public int hashCode()

equals

public boolean equals(Object o)

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

getPathWithoutFileProtocol

public String getPathWithoutFileProtocol()
If the id is a file url, return the path with out the file:/ prefix. Otherwise return the full id with protocol.