|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEDU.utwente.CoCompose.util.UniqueString
EDU.utwente.CoCompose.util.Identifier
Represents a valid programming language identifier.
Constructor Summary | |
Identifier(UniqueRealm realm)
Constructs an Identifier. |
|
Identifier(UniqueRealm realm,
java.lang.String value)
Constructs a Identifier. |
Method Summary | |
void |
setValue(java.lang.String value)
Sets the string value. |
protected boolean |
valueOk(java.lang.String value)
Check whether the string value is a valid identifier. |
Methods inherited from class EDU.utwente.CoCompose.util.UniqueString |
getValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Identifier(UniqueRealm realm) throws CoComposeException
realm
- The realm in which the value has to be unique.
CoComposeException
- if the new identifier ("") is not unique or valid.public Identifier(UniqueRealm realm, java.lang.String value) throws CoComposeException
realm
- The realm in which the value has to be unique.value
- The value to set this string to.
CoComposeException
- if the new identifier is not unique or valid.Method Detail |
protected boolean valueOk(java.lang.String value)
value
- The string value.
public void setValue(java.lang.String value) throws CoComposeException
setValue
in class UniqueString
value
- The new string value.
CoComposeException
- if the new value is not unique or valid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |