public class MockRecordNamespace extends MockNamespacePart
| Modifier and Type | Method and Description |
|---|---|
void |
addNewVariable(java.lang.String name,
Type type,
boolean isDefinedInExpression)
Adds a new variable.
|
boolean |
containsVariable(java.lang.String name)
Returns
true if this namespace contains variable of given name. |
NamespaceModel |
getNamespaceModel()
Returns
NamespaceModel for this namespace. |
RecordHolder |
getThis()
Returns object that represents this.
|
java.util.Set<java.lang.String> |
getVariableNames()
Returns the names of all the variables.
|
Type |
getVariableType(java.lang.String name)
Returns the type of variable or null if it does not exist.
|
java.lang.Object |
getVariableValue(java.lang.String name)
Returns value of variable for given name from this namespace.
|
void |
setVariableValue(java.lang.String name,
java.lang.Object value)
Sets value of variable for given name from this namespace.
|
getAllFreeTypeNames, getConstantValue, getFreeType, getModuleNames, getModuleNamespace, getParentNamespace, resolveTypeaddNewVariable, canBeInterpretedIn, createBinaryHolder, createBinaryHolder, createChildNamespace, createClosure, createClosure, createClosure, createClosureFromExpression, createExternalRecordProxy, createList, createMap, createMap, createNonSharedRecord, createRange, createRecord, createRecord, createReference, createSet, executeJavaOperation, getCompiled, getCompiled, getConfiguration, getContextId, getEvaluationLevel, getExecutionContext, getHolderFactory, getJavaObject, getLowerLevelNamespace, getModelElementId, getModelId, getModelInstanceId, getName, getNamespaceInLevel, getPathQID, initializeVariable, isVariableReadOnly, remove, setCompiled, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateChildNamespace, getFreeTypeMapping, getTopNamespace, resolveRecordTypecreateRecord, createRecordpublic RecordHolder getThis()
NamespacegetThis in interface NamespacegetThis in class MockNamespacePartpublic boolean containsVariable(java.lang.String name)
Namespacetrue if this namespace contains variable of given name.containsVariable in interface NamespacecontainsVariable in class AbstractMockNamespacename - variable namepublic java.util.Set<java.lang.String> getVariableNames()
NamespacegetVariableNames in interface NamespacegetVariableNames in class AbstractMockNamespacepublic java.lang.Object getVariableValue(java.lang.String name)
NamespaceNull is returned
if this namespace does not contain given variable.getVariableValue in interface NamespacegetVariableValue in class AbstractMockNamespacename - variable namepublic void setVariableValue(java.lang.String name,
java.lang.Object value)
NamespacesetVariableValue in interface NamespacesetVariableValue in class AbstractMockNamespacename - variable namevalue - new variable valuepublic Type getVariableType(java.lang.String name)
NamespacegetVariableType in interface NamespacegetVariableType in class AbstractMockNamespacename - variable namepublic NamespaceModel getNamespaceModel()
NamespaceNamespaceModel for this namespace.getNamespaceModel in interface NamespacegetNamespaceModel in class MockNamespacePartNamespaceModel for this namespaceCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.