public abstract class Variable
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
|
Variable(java.lang.String name,
java.lang.String type)
Creates new instance of
Variable . |
protected |
Variable(java.lang.String name,
java.lang.String type,
byte flags,
Value value) |
|
Variable(java.lang.String name,
java.lang.String type,
Value value)
Creates new instance of
Variable . |
protected |
Variable(SVariable source,
ModelInstance modelInstance) |
Modifier and Type | Method and Description |
---|---|
protected Type |
compileType(Context context,
ModelProvider modelProvider) |
void |
convertToDirectReferences()
Converts the value to a direct reference.
|
protected void |
fillSerializable(SVariable s,
SModelInstance smi,
MarshallerConfig config) |
abstract Type |
getCachedCompiledType()
Returns the cached compiled type, if it is stored.
|
abstract Type |
getCompiledType(Context context,
ModelProvider modelProvider)
Returns the compiled type.
|
java.lang.String |
getElementId(Context context,
ModelProvider modelProvider)
Returns the variable element id, if this is a modeled variable.
|
protected byte |
getFlags() |
protected boolean |
getFlagValue(byte mask) |
java.lang.String |
getName()
Returns variable name.
|
java.lang.String |
getType()
Returns the type.
|
Value |
getValue()
Returns variable value.
|
boolean |
isExpressionLocal()
Returns true is the variable is defined in an expression.
|
abstract boolean |
isInitialValueChanged()
Returns true if initial value was changed.
|
boolean |
isInternal()
Returns true if this variable is internal.
|
abstract boolean |
isReadOnly()
Returns true if variable is read only.
|
protected void |
refreshDirectReferences(ModelInstance modelInstance) |
protected void |
setFlagValue(boolean b,
byte mask) |
void |
setInternal(boolean internal)
Sets the internal flag of this variable.
|
void |
setIsExpressionLocal(boolean isExpressionLocal)
Sets the flag that the the variable is defined in an expression
|
abstract SVariable |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
java.lang.String |
toString() |
protected Value value
protected Variable(java.lang.String name, java.lang.String type, byte flags, Value value)
public Variable(java.lang.String name, java.lang.String type)
Variable
.name
- type
- java.lang.NullPointerException
- if context
or @{code name} is nullpublic Variable(java.lang.String name, java.lang.String type, Value value)
Variable
.name
- type
- value
- java.lang.NullPointerException
- if context
or name
or value
protected Variable(SVariable source, ModelInstance modelInstance)
public abstract SVariable toSerializable(SModelInstance smi, MarshallerConfig config)
smi
- config
- protected void fillSerializable(SVariable s, SModelInstance smi, MarshallerConfig config)
public java.lang.String getName()
public java.lang.String getType()
protected byte getFlags()
public abstract Type getCompiledType(Context context, ModelProvider modelProvider)
context
- modelProvider
- public abstract Type getCachedCompiledType()
null
protected Type compileType(Context context, ModelProvider modelProvider)
public Value getValue()
public java.lang.String getElementId(Context context, ModelProvider modelProvider)
context
- modelProvider
- null
public boolean isInternal()
public void setInternal(boolean internal)
internal
- public boolean isExpressionLocal()
public void setIsExpressionLocal(boolean isExpressionLocal)
isExpressionLocal
- public abstract boolean isInitialValueChanged()
public abstract boolean isReadOnly()
public java.lang.String toString()
toString
in class java.lang.Object
protected final boolean getFlagValue(byte mask)
protected final void setFlagValue(boolean b, byte mask)
public void convertToDirectReferences()
protected void refreshDirectReferences(ModelInstance modelInstance)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.