|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EDU.bmrb.starlibj.StarNode | +--EDU.bmrb.starlibj.DataItemNode
Holds a single "free" tag and value pair. Can be found inside SaveFrameNodes and BlockNodes
Field Summary | |
protected DataNameNode |
myDataName
|
protected DataValueNode |
myDataValue
|
Fields inherited from class EDU.bmrb.starlibj.StarNode |
colNum,
lineNum,
parent,
preComment |
Constructor Summary | |
DataItemNode(DataItemNode copyMe)
copy constructor: |
|
DataItemNode(DataNameNode name,
DataValueNode value)
This constructor makes a new item with the given name and value. |
|
DataItemNode(java.lang.String name,
java.lang.String value)
This constructor makes a new item with the given name and string value, giving it the default delimiter type of DataValueNode::NON. |
|
DataItemNode(java.lang.String name,
java.lang.String value,
short delim)
Make a new item given the name and value and delimiter type. |
Method Summary | |
java.lang.Object |
clone()
Allocates a new copy of me and returns a reference to it. |
short |
getDelimType()
Returns the delimiter type of the value in this item. |
java.lang.String |
getLabel()
Gets the String tag name of this item. |
DataNameNode |
getNameNode()
Gets the entire DataNameNode inside this item (as opposed to just the string name like getLabel() does.) |
java.lang.String |
getValue()
Gets the String value of this item. |
DataValueNode |
getValueNode()
getValueNode() is like getValue(), but it returns the whole DataValueNode, not just the string inside it. |
VectorCheckType |
searchByName(java.lang.String searchFor)
Included for orthogonality with StarNode. |
VectorCheckType |
searchByTagValue(java.lang.String tag,
java.lang.String value)
Included for orthogonality with StarNode. |
VectorCheckType |
searchForType(java.lang.Class type,
short delim)
Included for orthogonality with StarNode. |
void |
setDelimType(short delim)
Sets the delimiter type of the value in this item. |
void |
setLabel(java.lang.String name)
Sets the String tag name of this item - it's an exception if the name does not begin with an underscore. |
void |
setValue(java.lang.String val)
Sets the string value of this item. |
void |
setValue(java.lang.String val,
short delim)
Sets the String value and delimiter of this item together. |
void |
Unparse(int indent)
Unparse prints the contents of the StarNode object out to the given stream. |
Methods inherited from class EDU.bmrb.starlibj.StarNode |
getColNum,
getLineNum,
getParallelCopy,
getParent,
getPreComment,
mySkips,
searchForTypeByName,
searchForTypeByTagValue,
setColNum,
setLineNum,
setParent,
setPeer,
setPreComment |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected DataNameNode myDataName
protected DataValueNode myDataValue
Constructor Detail |
public DataItemNode(DataNameNode name, DataValueNode value) throws NameViolatesStarSyntax
public DataItemNode(java.lang.String name, java.lang.String value) throws NameViolatesStarSyntax, BadValueForDelimiter
public DataItemNode(java.lang.String name, java.lang.String value, short delim) throws NameViolatesStarSyntax, BadValueForDelimiter
Copies of the strings are made, not references.
public DataItemNode(DataItemNode copyMe)
Method Detail |
public java.lang.Object clone()
public short getDelimType()
public void setDelimType(short delim) throws BadValueForDelimiter
public java.lang.String getValue()
public DataValueNode getValueNode()
public void setValue(java.lang.String val) throws BadValueForDelimiter
public void setValue(java.lang.String val, short delim) throws BadValueForDelimiter
public java.lang.String getLabel()
public DataNameNode getNameNode()
public void setLabel(java.lang.String name) throws NameViolatesStarSyntax
public VectorCheckType searchByName(java.lang.String searchFor)
public VectorCheckType searchByTagValue(java.lang.String tag, java.lang.String value)
public VectorCheckType searchForType(java.lang.Class type, short delim)
public void Unparse(int indent)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |