public class Position extends Object implements Serializable, 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.
Constructor and Description |
---|
Position() |
Modifier and Type | Method and Description |
---|---|
Position |
clone() |
boolean |
equals(Object obj) |
Integer |
getColumn()
The column in the line containing the specified position in the
document.
|
Integer |
getLine()
The line containing the specified position in the document.
|
int |
hashCode() |
void |
setColumn(Integer column)
The column in the line containing the specified position in the
document.
|
void |
setLine(Integer line)
The line containing the specified position in the document.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Position |
withColumn(Integer column)
The column in the line containing the specified position in the
document.
|
Position |
withLine(Integer line)
The line containing the specified position in the document.
|
public Integer getLine()
public void setLine(Integer line)
line
- The line containing the specified position in the document.public Position withLine(Integer line)
Returns a reference to this object so that method calls can be chained together.
line
- The line containing the specified position in the document.public Integer getColumn()
public void setColumn(Integer column)
column
- The column in the line containing the specified position in the
document.public Position withColumn(Integer column)
Returns a reference to this object so that method calls can be chained together.
column
- The column in the line containing the specified position in the
document.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.