|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deduced.AbstractPropertyCollection<K,V> org.deduced.FixedPropertyInstanceCollection<java.lang.Object,java.lang.Object> org.deduced.implementation.CompiledModelImplementation
public class CompiledModelImplementation
Java Implementation used to represent the type : compiled model Class generated by org.deduced.generator.VelocityGenerator Using template : org/deduced/generator/java/JavaImplementation.vm
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.deduced.AbstractPropertyCollection |
---|
AbstractPropertyCollection.CollectionToDeleteMonitor |
Field Summary | |
---|---|
private java.lang.String |
code
member variable holding the value for : code |
private java.lang.String |
compileError
member variable holding the value for : compile error |
private java.lang.String |
compileOutput
member variable holding the value for : compile output |
private java.lang.String |
documentation
member variable holding the value for : documentation |
private boolean |
enabled
member variable holding the value for : enabled |
static java.util.Set<java.lang.Object> |
KEY_SET
list of keys held in this collection |
private java.lang.String |
lastException
member variable holding the value for : last exception |
private java.lang.String |
name
member variable holding the value for : name |
Fields inherited from class org.deduced.AbstractPropertyCollection |
---|
CHECK_DELETE_MODE_AUTOMATIC, CHECK_DELETE_MODE_MANUAL, COLLECTION_TO_DELETE |
Fields inherited from interface org.deduced.CompiledModel |
---|
CODE_INSTANCE, COMPILE_ERROR_INSTANCE, COMPILE_OUTPUT_INSTANCE, COMPILED_MODEL_TYPE, LAST_EXCEPTION_INSTANCE |
Fields inherited from interface org.deduced.EnabledPropertyCollection |
---|
ENABLED_INSTANCE, ENABLED_PROPERTY_COLLECTION_TYPE |
Fields inherited from interface org.deduced.DocumentedCollection |
---|
DOCUMENTATION_INSTANCE, DOCUMENTED_COLLECTION_TYPE |
Fields inherited from interface org.deduced.NamedPropertyCollection |
---|
NAME_INSTANCE, NAMED_PROPERTY_COLLECTION_TYPE |
Fields inherited from interface org.deduced.PropertyCollection |
---|
PROPERTY_COLLECTION_TYPE |
Constructor Summary | |
---|---|
CompiledModelImplementation()
Default constructor for the type : compiled model |
Method Summary | |
---|---|
java.util.Set<java.lang.Object> |
asKeySet()
|
java.lang.Object |
clone()
(non-Javadoc) |
static void |
createInstancesAndTypes()
create instances and types |
static void |
createKeyList()
static method used to initialize the key list on the property collection |
boolean |
equals(java.lang.Object o)
(non-Javadoc) |
static void |
fillInstancesAndTypes()
fill instances and types phase 1 |
static void |
fillInstancesAndTypesFromSchema(PropertyCollection<?,?> schema)
fill instances and types from a schema |
static void |
fillTypeLists()
fill instances and types phase 2 |
java.lang.String |
getCode()
(non-Javadoc) |
static java.lang.String |
getCode(PropertyCollection<?,?> collection)
Get the value of the instance : code |
java.lang.String |
getCompileError()
(non-Javadoc) |
static java.lang.String |
getCompileError(PropertyCollection<?,?> collection)
Get the value of the instance : compile error |
java.lang.String |
getCompileOutput()
(non-Javadoc) |
static java.lang.String |
getCompileOutput(PropertyCollection<?,?> collection)
Get the value of the instance : compile output |
java.lang.String |
getDocumentation()
(non-Javadoc) |
static java.lang.String |
getDocumentation(PropertyCollection<?,?> collection)
Get the value of the instance : documentation |
java.lang.String |
getLastException()
(non-Javadoc) |
static java.lang.String |
getLastException(PropertyCollection<?,?> collection)
Get the value of the instance : last exception |
java.lang.String |
getName()
(non-Javadoc) |
static java.lang.String |
getName(PropertyCollection<?,?> collection)
Get the value of the instance : name |
java.lang.Object |
getPropertyValue(java.lang.Object key)
(non-Javadoc) |
boolean |
isEnabled()
(non-Javadoc) |
static java.lang.Boolean |
isEnabled(PropertyCollection<?,?> collection)
Get the value of the instance : enabled |
static void |
resetListFixedInstances(CompiledModel instance)
reset all the list fixed instances |
static java.lang.String |
setCode(PropertyCollection collection,
java.lang.String value)
set the value of the instance : code |
java.lang.String |
setCode(java.lang.String setValue)
(non-Javadoc) |
static java.lang.String |
setCompileError(PropertyCollection collection,
java.lang.String value)
set the value of the instance : compile error |
java.lang.String |
setCompileError(java.lang.String setValue)
(non-Javadoc) |
static java.lang.String |
setCompileOutput(PropertyCollection collection,
java.lang.String value)
set the value of the instance : compile output |
java.lang.String |
setCompileOutput(java.lang.String setValue)
(non-Javadoc) |
static java.lang.String |
setDocumentation(PropertyCollection collection,
java.lang.String value)
set the value of the instance : documentation |
java.lang.String |
setDocumentation(java.lang.String setValue)
(non-Javadoc) |
boolean |
setEnabled(boolean setValue)
(non-Javadoc) |
static java.lang.Boolean |
setEnabled(PropertyCollection collection,
java.lang.Boolean value)
set the value of the instance : enabled |
static java.lang.String |
setLastException(PropertyCollection collection,
java.lang.String value)
set the value of the instance : last exception |
java.lang.String |
setLastException(java.lang.String setValue)
(non-Javadoc) |
static java.lang.String |
setName(PropertyCollection collection,
java.lang.String value)
set the value of the instance : name |
java.lang.String |
setName(java.lang.String setValue)
(non-Javadoc) |
java.lang.Object |
setProperty(java.lang.Object key,
java.lang.Object value)
(non-Javadoc) |
PropertyCollectionType |
type()
(non-Javadoc) |
Methods inherited from class org.deduced.FixedPropertyInstanceCollection |
---|
addProperty, areKeysAssignedAutomatically, containsKey, getProperty, iterator, iteratorByValue, removeProperty, removePropertyInstance, removePropertyValue, size |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.deduced.PropertyCollection |
---|
activate, addListener, addProperty, areKeysAssignedAutomatically, asPropertyList, asPropertyMap, asValueList, asValueMap, clear, containsInstance, containsKey, containsValue, delete, getFixedInstance, getProperty, id, instanceKey, invokeAction, isActivated, isEmpty, isListenerRegistered, iterator, iteratorByValue, keyOnParent, parent, removeListener, removeProperty, removePropertyInstance, removePropertyValue, setFixedInstance, setParent, size, valueKey |
Field Detail |
---|
public static java.util.Set<java.lang.Object> KEY_SET
private java.lang.String lastException
private java.lang.String compileOutput
private java.lang.String compileError
private java.lang.String code
private boolean enabled
private java.lang.String documentation
private java.lang.String name
Constructor Detail |
---|
public CompiledModelImplementation()
Method Detail |
---|
public java.util.Set<java.lang.Object> asKeySet()
asKeySet
in interface PropertyCollection<java.lang.Object,java.lang.Object>
public PropertyCollectionType type()
type
in interface PropertyCollection<java.lang.Object,java.lang.Object>
PropertyCollection.type()
public static void createKeyList()
public java.lang.String getLastException()
getLastException
in interface CompiledModel
CompiledModel.getLastException()
public static java.lang.String getLastException(PropertyCollection<?,?> collection)
collection
- new collection from which to fetch the value
public java.lang.String setLastException(java.lang.String setValue)
setLastException
in interface CompiledModel
setValue
- new last exception
CompiledModel.setLastException(java.lang.String)
public static java.lang.String setLastException(PropertyCollection collection, java.lang.String value)
collection
- new collection on which to set the valuevalue
- new value for : last exception
public java.lang.String getCompileOutput()
getCompileOutput
in interface CompiledModel
CompiledModel.getCompileOutput()
public static java.lang.String getCompileOutput(PropertyCollection<?,?> collection)
collection
- new collection from which to fetch the value
public java.lang.String setCompileOutput(java.lang.String setValue)
setCompileOutput
in interface CompiledModel
setValue
- new compile output
CompiledModel.setCompileOutput(java.lang.String)
public static java.lang.String setCompileOutput(PropertyCollection collection, java.lang.String value)
collection
- new collection on which to set the valuevalue
- new value for : compile output
public java.lang.String getCompileError()
getCompileError
in interface CompiledModel
CompiledModel.getCompileError()
public static java.lang.String getCompileError(PropertyCollection<?,?> collection)
collection
- new collection from which to fetch the value
public java.lang.String setCompileError(java.lang.String setValue)
setCompileError
in interface CompiledModel
setValue
- new compile error
CompiledModel.setCompileError(java.lang.String)
public static java.lang.String setCompileError(PropertyCollection collection, java.lang.String value)
collection
- new collection on which to set the valuevalue
- new value for : compile error
public java.lang.String getCode()
getCode
in interface CompiledModel
CompiledModel.getCode()
public static java.lang.String getCode(PropertyCollection<?,?> collection)
collection
- new collection from which to fetch the value
public java.lang.String setCode(java.lang.String setValue)
setCode
in interface CompiledModel
setValue
- new code
CompiledModel.setCode(java.lang.String)
public static java.lang.String setCode(PropertyCollection collection, java.lang.String value)
collection
- new collection on which to set the valuevalue
- new value for : code
public boolean isEnabled()
isEnabled
in interface EnabledPropertyCollection
EnabledPropertyCollection.isEnabled()
public static java.lang.Boolean isEnabled(PropertyCollection<?,?> collection)
collection
- new collection from which to fetch the value
public boolean setEnabled(boolean setValue)
setEnabled
in interface EnabledPropertyCollection
setValue
- new enabled
EnabledPropertyCollection.setEnabled(boolean)
public static java.lang.Boolean setEnabled(PropertyCollection collection, java.lang.Boolean value)
collection
- new collection on which to set the valuevalue
- new value for : enabled
public java.lang.String getDocumentation()
getDocumentation
in interface DocumentedCollection
DocumentedCollection.getDocumentation()
public static java.lang.String getDocumentation(PropertyCollection<?,?> collection)
collection
- new collection from which to fetch the value
public java.lang.String setDocumentation(java.lang.String setValue)
setDocumentation
in interface DocumentedCollection
setValue
- new documentation
DocumentedCollection.setDocumentation(java.lang.String)
public static java.lang.String setDocumentation(PropertyCollection collection, java.lang.String value)
collection
- new collection on which to set the valuevalue
- new value for : documentation
public java.lang.String getName()
getName
in interface NamedPropertyCollection
NamedPropertyCollection.getName()
public static java.lang.String getName(PropertyCollection<?,?> collection)
collection
- new collection from which to fetch the value
public java.lang.String setName(java.lang.String setValue)
setName
in interface NamedPropertyCollection
setValue
- new name
NamedPropertyCollection.setName(java.lang.String)
public static java.lang.String setName(PropertyCollection collection, java.lang.String value)
collection
- new collection on which to set the valuevalue
- new value for : name
public boolean equals(java.lang.Object o)
equals
in class AbstractPropertyCollection<java.lang.Object,java.lang.Object>
Object.equals(java.lang.Object)
public java.lang.Object clone()
clone
in interface PropertyCollection<java.lang.Object,java.lang.Object>
clone
in class AbstractPropertyCollection<java.lang.Object,java.lang.Object>
AbstractPropertyCollection.clone()
public java.lang.Object setProperty(java.lang.Object key, java.lang.Object value)
setProperty
in interface PropertyCollection<java.lang.Object,java.lang.Object>
setProperty
in class FixedPropertyInstanceCollection<java.lang.Object,java.lang.Object>
key
- the key of the propertyvalue
- the new value of the property. If the property is a
collection that is not by reference, this method requires that
the passed collection has a parent set to null since it will
reset the parent.
PropertyCollection.setProperty(java.lang.Object,java.lang.Object)
public java.lang.Object getPropertyValue(java.lang.Object key)
getPropertyValue
in interface PropertyCollection<java.lang.Object,java.lang.Object>
key
- the property key
PropertyCollection.getPropertyValue(java.lang.Object)
public static void resetListFixedInstances(CompiledModel instance)
instance
- the instance that will get all its list fixed instances setpublic static void createInstancesAndTypes()
public static void fillInstancesAndTypesFromSchema(PropertyCollection<?,?> schema)
schema
- the schema that contains the required instances and typespublic static void fillInstancesAndTypes()
public static void fillTypeLists()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |