|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mtj.core.model.preprocessor.SymbolDefinitionSet
public class SymbolDefinitionSet
A set of symbol names to true/false definition status.
| Constructor Summary | |
|---|---|
SymbolDefinitionSet()
Construct a new symbol definition set without a name |
|
SymbolDefinitionSet(String name)
Construct a new symbol definition set with the specified name. |
|
| Method Summary | |
|---|---|
void |
define(String identifier)
Define the specified identifier. |
void |
define(String identifier,
String value)
Define the specified identifier to be the specified value. |
boolean |
equals(Object obj)
|
boolean |
equals(SymbolDefinitionSet definitions)
Return a boolean indicating whether the specified SymbolDefinitions object is equal to this object. |
Map<String,String> |
getDefinedSymbols()
Return the symbols that are defined as true in the list of symbol definitions. |
String |
getName()
Return the name of this set of symbol definitions. |
String |
getValue(String identifier)
Return the (possibly null) value of the specified identifier. |
int |
hashCode()
|
boolean |
isDefined(String identifier)
Return a boolean indicating whether the specified identifier is defined. |
void |
loadUsing(IPersistenceProvider persistenceProvider)
Load the state of this object using the specified persistence state information. |
void |
setDefinitions(Map<String,String> definitions)
Set the definitions set to contain the specified definitions. |
void |
setName(String name)
Set the name of this set of symbol definitions. |
void |
storeUsing(IPersistenceProvider persistenceProvider)
Save the state of this object using the specified persistence state information. |
String |
toString()
|
void |
undefine(String identifier)
Undefine the specified identifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SymbolDefinitionSet()
public SymbolDefinitionSet(String name)
name - | Method Detail |
|---|
public void define(String identifier)
identifier -
public void define(String identifier,
String value)
identifier - value - public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public boolean equals(SymbolDefinitionSet definitions)
definitions -
public Map<String,String> getDefinedSymbols()
public String getName()
public String getValue(String identifier)
identifier -
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean isDefined(String identifier)
identifier -
public void loadUsing(IPersistenceProvider persistenceProvider)
throws PersistenceException
IPersistable
loadUsing in interface IPersistablePersistenceExceptionIPersistable.loadUsing(org.eclipse.mtj.core.persistence.IPersistenceProvider)public void setDefinitions(Map<String,String> definitions)
definitions - public void setName(String name)
name - the name to set
public void storeUsing(IPersistenceProvider persistenceProvider)
throws PersistenceException
IPersistable
storeUsing in interface IPersistablePersistenceExceptionIPersistable.storeUsing(org.eclipse.mtj.core.persistence.IPersistenceProvider)public String toString()
toString in class ObjectObject.toString()public void undefine(String identifier)
identifier -
|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||