de.uni_bremen.st.rcf.model
Class SourcePosition

java.lang.Object
  extended by de.uni_bremen.st.rcf.model.Entry
      extended by de.uni_bremen.st.rcf.model.SourcePosition

public final class SourcePosition
extends Entry


Method Summary
 int getColumn()
          Get the column value.
 int getColumn(int defaultValue)
          Get the column value.
 File getFile()
          Get the file value.
 File getFile(File defaultValue)
          Get the file value.
 int getLine()
          Get the line value.
 int getLine(int defaultValue)
          Get the line value.
 int getOffset()
          Get the offset value.
 int getOffset(int defaultValue)
          Get the offset value.
 Relation<SourcePosition> getRelation()
          Get the relation this entry belongs to
 boolean isColumnSet()
          Tells wether the column value is set or not.
 boolean isFileSet()
          Tells wether the file value is set or not.
 boolean isLineSet()
          Tells wether the line value is set or not.
 boolean isOffsetSet()
          Tells wether the offset value is set or not.
 void setColumn(int i)
          Set the column value.
 void setFile(File entry)
          Set the file value.
 void setLine(int i)
          Set the line value.
 void setOffset(int i)
          Set the offset value.
 
Methods inherited from class de.uni_bremen.st.rcf.model.Entry
copy, equals, getBool, getBool, getBool, getBool, getBoolList, getBoolList, getEntry, getEntry, getEntry, getEntry, getEntryList, getEntryList, getEntryType, getFloat, getFloat, getFloat, getFloat, getFloatList, getFloatList, getId, getInt, getInt, getInt, getInt, getIntList, getIntList, getString, getString, getString, getString, getStringList, getStringList, hashCode, isSet, isSet, setBool, setBool, setEntry, setEntry, setFloat, setFloat, setInt, setInt, setString, setString, store, unset, unset
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRelation

public Relation<SourcePosition> getRelation()
Description copied from class: Entry
Get the relation this entry belongs to

Overrides:
getRelation in class Entry
Returns:
the Relation

getFile

public File getFile()
Get the file value.

Returns:
the value of file

getFile

public File getFile(File defaultValue)
Get the file value.

Returns:
the value of file or defaultValue if file is not set.

setFile

public void setFile(File entry)
Set the file value.

Parameters:
f - the value

isFileSet

public boolean isFileSet()
Tells wether the file value is set or not.

Returns:
true if file is set.

getLine

public int getLine()
Get the line value.

Returns:
the value of line

getLine

public int getLine(int defaultValue)
Get the line value.

Returns:
the value of line or defaultValue if line is not set.

setLine

public void setLine(int i)
Set the line value.

Parameters:
i - the value

isLineSet

public boolean isLineSet()
Tells wether the line value is set or not.

Returns:
true if line is set.

getColumn

public int getColumn()
Get the column value.

Returns:
the value of column

getColumn

public int getColumn(int defaultValue)
Get the column value.

Returns:
the value of column or defaultValue if column is not set.

setColumn

public void setColumn(int i)
Set the column value.

Parameters:
i - the value

isColumnSet

public boolean isColumnSet()
Tells wether the column value is set or not.

Returns:
true if column is set.

getOffset

public int getOffset()
Get the offset value.

Returns:
the value of offset

getOffset

public int getOffset(int defaultValue)
Get the offset value.

Returns:
the value of offset or defaultValue if offset is not set.

setOffset

public void setOffset(int i)
Set the offset value.

Parameters:
i - the value

isOffsetSet

public boolean isOffsetSet()
Tells wether the offset value is set or not.

Returns:
true if offset is set.


Copyright © 2011. All Rights Reserved.