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