public final class Context
extends java.lang.Object
implements java.io.Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
Context()
Creates new instance.
|
|
Context(long id,
java.lang.String name,
java.lang.String modelId,
java.util.Collection<Variable> variables)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getId()
Returns the id of this context.
|
java.lang.String |
getModelId()
Returns the model id.
|
java.lang.String |
getName()
Returns the name of this context.
|
Variable |
getVariable(java.lang.String name)
Returns a variable for the given variable name.
|
java.util.Set<java.lang.String> |
getVariableNames()
Returns a set of variable names.
|
java.util.Collection<Variable> |
getVariables()
Returns the variables map indexed with the variable names.
|
Type |
getVariableType(java.lang.String name)
Returns the variable type for given variable name or null if the variable
does not exist.
|
ObjectValue |
getVariableValue(java.lang.String name)
Returns the variable value for given variable name or null if the
variable does not exist.
|
int |
hashCode() |
java.lang.String |
toString() |
protected Context()
public Context(long id,
java.lang.String name,
java.lang.String modelId,
java.util.Collection<Variable> variables)
id - name - modelId - variables - java.lang.NullPointerException - if name or variables is nullpublic long getId()
public java.lang.String getName()
public java.lang.String getModelId()
public java.util.Set<java.lang.String> getVariableNames()
public ObjectValue getVariableValue(java.lang.String name)
name - java.lang.NullPointerException - if name is nullpublic Type getVariableType(java.lang.String name)
name - java.lang.NullPointerException - if name is nullpublic java.util.Collection<Variable> getVariables()
public Variable getVariable(java.lang.String name)
name - public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.