public class Position
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the row and column of a location of a Statement
element
in a policy document.
This data type is used as a member of the Statement
type.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
column
The column in the line containing the specified position in the document.
|
private java.lang.Integer |
line
The line containing the specified position in the document.
|
Constructor and Description |
---|
Position() |
Modifier and Type | Method and Description |
---|---|
Position |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getColumn()
The column in the line containing the specified position in the document.
|
java.lang.Integer |
getLine()
The line containing the specified position in the document.
|
int |
hashCode() |
void |
setColumn(java.lang.Integer column)
The column in the line containing the specified position in the document.
|
void |
setLine(java.lang.Integer line)
The line containing the specified position in the document.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Position |
withColumn(java.lang.Integer column)
The column in the line containing the specified position in the document.
|
Position |
withLine(java.lang.Integer line)
The line containing the specified position in the document.
|
private java.lang.Integer line
The line containing the specified position in the document.
private java.lang.Integer column
The column in the line containing the specified position in the document.
public void setLine(java.lang.Integer line)
The line containing the specified position in the document.
line
- The line containing the specified position in the document.public java.lang.Integer getLine()
The line containing the specified position in the document.
public Position withLine(java.lang.Integer line)
The line containing the specified position in the document.
line
- The line containing the specified position in the document.public void setColumn(java.lang.Integer column)
The column in the line containing the specified position in the document.
column
- The column in the line containing the specified position in the
document.public java.lang.Integer getColumn()
The column in the line containing the specified position in the document.
public Position withColumn(java.lang.Integer column)
The column in the line containing the specified position in the document.
column
- The column in the line containing the specified position in the
document.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Position clone()
clone
in class java.lang.Object