|
Mobile Tools for Java Release 1.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface ISymbol
A Symbol is a pair <name; value> and may be used for preprocessing purposes.
Clients must use MTJCore.getSymbolSetFactory() to retrieve an
ISymbolSetFactory instance and use the
ISymbolSetFactory.createSymbol(String, String) to create an ISymbol
instance.
EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the MTJ team.
| Field Summary | |
|---|---|
static int |
TYPE_ABILITY
When a symbol represents an ability. |
static int |
TYPE_RUNTIME
When a symbol represents an MTJRuntime ID. |
| Fields inherited from interface org.eclipse.mtj.core.persistence.IPersistable |
|---|
CLASS_PERSISTABLE_ATTRIBUTE, ID_PERSISTABLE_ATTRIBUTE, KEY_PERSISTABLE_ATTRIBUTE, PROPERTY_PERSISTABLE_ELEMENT, REFID_PERSISTABLE_ATTRIBUTE, VALUE_PERSISTABLE_ATTRIBUTE |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
If name equals, then symbol equals. |
String |
getName()
Return the name of the symbol. |
String |
getSafeValue()
Get value in safe format for preprocessor. |
int |
getType()
Get the symbol type. |
String |
getValue()
Return the symbol value. |
int |
hashCode()
|
void |
setName(String identifier)
Sets the the name of the symbol. |
void |
setType(int type)
Set the symbol type. |
void |
setValue(String value)
Set the value of the symbol. |
String |
toString()
|
| Methods inherited from interface org.eclipse.mtj.core.persistence.IPersistable |
|---|
loadUsing, storeUsing |
| Field Detail |
|---|
static final int TYPE_ABILITY
static final int TYPE_RUNTIME
| Method Detail |
|---|
boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare.
true if this object is the same as the obj argument;
false otherwise.String getName()
String getSafeValue()
int getType()
TYPE_ABILITY and
TYPE_RUNTIME.String getValue()
int hashCode()
hashCode in class Objectvoid setName(String identifier)
identifier - the name of the symbol. This is case-sensitive and must
not be null or an empty String "".void setType(int type)
type - the symbol type. Possible types are TYPE_ABILITY and
TYPE_RUNTIME.void setValue(String value)
value - the value of the symbol.String toString()
toString in class Object
|
Mobile Tools for Java Release 1.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||