|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.sqleditor.internal.sql.SQLSegment
public class SQLSegment
This class defines a segment in a SQL source document.
Constructor Summary | |
---|---|
SQLSegment()
Creates an instance of this class. |
Method Summary | |
---|---|
int |
getIndex()
Gets the index of this partition segment. |
java.lang.String |
getKind()
Gets a string indicating the kind of partition segment this is. |
java.lang.String |
getMessage()
Gets the message associated with this partition segment, or null if the partition segment has no message. |
java.lang.String |
getPartitionLabel()
Gets the partition label of this partition segment. |
org.eclipse.jface.text.Position |
getPosition()
Gets the position of this segment. |
java.lang.String |
getType()
Gets the type of this partition segment. |
boolean |
isValid()
Gets whether or not the partition segment is valid. |
void |
setIndex(int index)
Sets the index of the partition segment to the given value. |
void |
setKind(java.lang.String kind)
Sets what kind of partition segment this is. |
void |
setMessage(java.lang.String message)
Sets the message associated with this partition segment to the given message. |
void |
setPartitionLabel(java.lang.String partitionLabel)
Sets the partition label of this partition segment to the given label. |
void |
setPosition(org.eclipse.jface.text.Position position)
Sets the position of the partition segment to the given position. |
void |
setType(java.lang.String partitionType)
Sets the type of this partition segment to the given type. |
void |
setValid(boolean valid)
Sets whether or not the partition segment is valid. |
java.lang.String |
toString()
Returns a String that represents the value of this object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SQLSegment()
Method Detail |
---|
public int getIndex()
public java.lang.String getKind()
public java.lang.String getMessage()
public java.lang.String getPartitionLabel()
public org.eclipse.jface.text.Position getPosition()
public java.lang.String getType()
public boolean isValid()
true
when the partition segment is valid, otherwise falsepublic void setIndex(int index)
index
- the partition segment indexpublic void setKind(java.lang.String kind)
kind
- the partition segment kindpublic void setMessage(java.lang.String message)
message
- the message to associate with the segmentpublic void setPartitionLabel(java.lang.String partitionLabel)
partitionLabel
- the partition label to setpublic void setPosition(org.eclipse.jface.text.Position position)
position
- the position of this partition segmentpublic void setType(java.lang.String partitionType)
partitionType
- the partition segment type to setpublic void setValid(boolean valid)
valid
- true
when the partition segment is valid, otherwise falsepublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |