xpointer
Class Location
java.lang.Object
|
+--xpointer.Location
- All Implemented Interfaces:
- java.lang.Cloneable
- public class Location
- extends java.lang.Object
- implements java.lang.Cloneable
This class represents the concept of location according to XPointer CR.
A location can be a node,a range or a point. We assume that a point is identical
to a collapsed range.
Field Summary |
static int |
NODE
|
static int |
RANGE
|
Constructor Summary |
Location()
Creates new Location |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RANGE
public static final int RANGE
NODE
public static final int NODE
Location
public Location()
- Creates new Location
getType
public int getType()
setType
public void setType(int param)
setLocation
public void setLocation(java.lang.Object param)
getLocation
public java.lang.Object getLocation()
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class java.lang.Object
equals
public boolean equals(Location loc)
- Compares this location with another one.
- Parameters:
loc
- the location to be compared- Returns:
- true if this location is equal to the location passed as an argument, false otherwise.