org.deduced.implementation
Class DeductionRuleImplementation

java.lang.Object
  extended by org.deduced.AbstractPropertyCollection<K,V>
      extended by org.deduced.FixedPropertyInstanceCollection<java.lang.Object,java.lang.Object>
          extended by org.deduced.implementation.DeductionRuleImplementation
All Implemented Interfaces:
java.lang.Cloneable, CompiledModel, DeductionRule, DocumentedCollection, EnabledPropertyCollection, NamedPropertyCollection, PropertyCollection<java.lang.Object,java.lang.Object>

public class DeductionRuleImplementation
extends FixedPropertyInstanceCollection<java.lang.Object,java.lang.Object>
implements DeductionRule

Java Implementation used to represent the type : deduction rule 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
private  PropertyList inputList
          member variable holding the value for : input list
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
private  InstanceReference output
          member variable holding the value for : output
 
Fields inherited from class org.deduced.AbstractPropertyCollection
CHECK_DELETE_MODE_AUTOMATIC, CHECK_DELETE_MODE_MANUAL, COLLECTION_TO_DELETE
 
Fields inherited from interface org.deduced.DeductionRule
DEDUCTION_RULE_TYPE, INPUT_LIST_INSTANCE, OUTPUT_INSTANCE
 
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
DeductionRuleImplementation()
          Default constructor for the type : deduction rule
 
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
 PropertyList getInputList()
          (non-Javadoc)
static PropertyCollection getInputList(PropertyCollection<?,?> collection)
          Get the value of the instance : input list
 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
 InstanceReference getOutput()
          (non-Javadoc)
static PropertyCollection getOutput(PropertyCollection<?,?> collection)
          Get the value of the instance : output
 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(DeductionRule 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 PropertyCollection setInputList(PropertyCollection collection, PropertyCollection value)
          set the value of the instance : input list
 PropertyList setInputList(PropertyList setValue)
          (non-Javadoc)
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)
 InstanceReference setOutput(InstanceReference setValue)
          (non-Javadoc)
static PropertyCollection setOutput(PropertyCollection collection, PropertyCollection value)
          set the value of the instance : output
 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 org.deduced.AbstractPropertyCollection
activate, addListener, asPropertyList, asPropertyMap, asValueList, asValueMap, callObjectClone, classLogger, cleanNewlyClonedValue, clear, clearCollectionMonitoredForDelete, cloneCollection, containsInstance, containsValue, createUniqueID, delete, deleteClearAllProperties, deleteClearListenerList, deleteFireDeleteEvent, deleteProcessCompletedValidation, deleteRemoveLocalObjectFromParent, deleteValidateEmptyListenerList, deleteValidateNoPendingReferences, firePropertyChangeEvent, flushCollectionsWithNewParent, flushCollectionsWithNewParent, getActionInvoker, getCheckDeleteMode, getCheckDeleteRunner, getFixedInstance, getInstanceIdentityKey, hashCode, id, instanceKey, internalFirePropertyChangeEvent, invokeAction, isActivated, isDeleteCheckedOnClearParent, isEmpty, isListenerRegistered, isParentOrKeyNull, keyOnParent, parent, removeListener, requiresChangeEvent, setActionInvoker, setCheckDeleteMode, setCheckDeleteRunner, setDeleteCheckedOnClearParent, setFixedInstance, setParent, toString, updateReference, updateReferenceWithReferenceFlag, validateAllPropertyInstances, validateNoListener, validateNoParentRecursion, validateParentIsNull, validateParentIsNull, valueKey
 
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

KEY_SET

public static java.util.Set<java.lang.Object> KEY_SET
list of keys held in this collection


output

private InstanceReference output
member variable holding the value for : output


inputList

private PropertyList inputList
member variable holding the value for : input list


lastException

private java.lang.String lastException
member variable holding the value for : last exception


compileOutput

private java.lang.String compileOutput
member variable holding the value for : compile output


compileError

private java.lang.String compileError
member variable holding the value for : compile error


code

private java.lang.String code
member variable holding the value for : code


enabled

private boolean enabled
member variable holding the value for : enabled


documentation

private java.lang.String documentation
member variable holding the value for : documentation


name

private java.lang.String name
member variable holding the value for : name

Constructor Detail

DeductionRuleImplementation

public DeductionRuleImplementation()
Default constructor for the type : deduction rule

Method Detail

asKeySet

public java.util.Set<java.lang.Object> asKeySet()
Specified by:
asKeySet in interface PropertyCollection<java.lang.Object,java.lang.Object>
Returns:
the key set

type

public PropertyCollectionType type()
(non-Javadoc)

Specified by:
type in interface PropertyCollection<java.lang.Object,java.lang.Object>
Returns:
the property description
See Also:
PropertyCollection.type()

createKeyList

public static void createKeyList()
static method used to initialize the key list on the property collection


getOutput

public InstanceReference getOutput()
(non-Javadoc)

Specified by:
getOutput in interface DeductionRule
Returns:
output
See Also:
DeductionRule.getOutput()

getOutput

public static PropertyCollection getOutput(PropertyCollection<?,?> collection)
Get the value of the instance : output

Parameters:
collection - new collection from which to fetch the value
Returns:
output

setOutput

public InstanceReference setOutput(InstanceReference setValue)
(non-Javadoc)

Specified by:
setOutput in interface DeductionRule
Parameters:
setValue - new output
Returns:
output value after the change
See Also:
DeductionRule.setOutput(org.deduced.InstanceReference)

setOutput

public static PropertyCollection setOutput(PropertyCollection collection,
                                           PropertyCollection value)
set the value of the instance : output

Parameters:
collection - new collection on which to set the value
value - new value for : output
Returns:
output

getInputList

public PropertyList getInputList()
(non-Javadoc)

Specified by:
getInputList in interface DeductionRule
Returns:
input list
See Also:
DeductionRule.getInputList()

getInputList

public static PropertyCollection getInputList(PropertyCollection<?,?> collection)
Get the value of the instance : input list

Parameters:
collection - new collection from which to fetch the value
Returns:
input list

setInputList

public PropertyList setInputList(PropertyList setValue)
(non-Javadoc)

Specified by:
setInputList in interface DeductionRule
Parameters:
setValue - new input list
Returns:
input list value after the change
See Also:
DeductionRule.setInputList(org.deduced.PropertyList)

setInputList

public static PropertyCollection setInputList(PropertyCollection collection,
                                              PropertyCollection value)
set the value of the instance : input list

Parameters:
collection - new collection on which to set the value
value - new value for : input list
Returns:
input list

getLastException

public java.lang.String getLastException()
(non-Javadoc)

Specified by:
getLastException in interface CompiledModel
Returns:
last exception
See Also:
CompiledModel.getLastException()

getLastException

public static java.lang.String getLastException(PropertyCollection<?,?> collection)
Get the value of the instance : last exception

Parameters:
collection - new collection from which to fetch the value
Returns:
last exception

setLastException

public java.lang.String setLastException(java.lang.String setValue)
(non-Javadoc)

Specified by:
setLastException in interface CompiledModel
Parameters:
setValue - new last exception
Returns:
last exception value after the change
See Also:
CompiledModel.setLastException(java.lang.String)

setLastException

public static java.lang.String setLastException(PropertyCollection collection,
                                                java.lang.String value)
set the value of the instance : last exception

Parameters:
collection - new collection on which to set the value
value - new value for : last exception
Returns:
last exception

getCompileOutput

public java.lang.String getCompileOutput()
(non-Javadoc)

Specified by:
getCompileOutput in interface CompiledModel
Returns:
compile output
See Also:
CompiledModel.getCompileOutput()

getCompileOutput

public static java.lang.String getCompileOutput(PropertyCollection<?,?> collection)
Get the value of the instance : compile output

Parameters:
collection - new collection from which to fetch the value
Returns:
compile output

setCompileOutput

public java.lang.String setCompileOutput(java.lang.String setValue)
(non-Javadoc)

Specified by:
setCompileOutput in interface CompiledModel
Parameters:
setValue - new compile output
Returns:
compile output value after the change
See Also:
CompiledModel.setCompileOutput(java.lang.String)

setCompileOutput

public static java.lang.String setCompileOutput(PropertyCollection collection,
                                                java.lang.String value)
set the value of the instance : compile output

Parameters:
collection - new collection on which to set the value
value - new value for : compile output
Returns:
compile output

getCompileError

public java.lang.String getCompileError()
(non-Javadoc)

Specified by:
getCompileError in interface CompiledModel
Returns:
compile error
See Also:
CompiledModel.getCompileError()

getCompileError

public static java.lang.String getCompileError(PropertyCollection<?,?> collection)
Get the value of the instance : compile error

Parameters:
collection - new collection from which to fetch the value
Returns:
compile error

setCompileError

public java.lang.String setCompileError(java.lang.String setValue)
(non-Javadoc)

Specified by:
setCompileError in interface CompiledModel
Parameters:
setValue - new compile error
Returns:
compile error value after the change
See Also:
CompiledModel.setCompileError(java.lang.String)

setCompileError

public static java.lang.String setCompileError(PropertyCollection collection,
                                               java.lang.String value)
set the value of the instance : compile error

Parameters:
collection - new collection on which to set the value
value - new value for : compile error
Returns:
compile error

getCode

public java.lang.String getCode()
(non-Javadoc)

Specified by:
getCode in interface CompiledModel
Returns:
code
See Also:
CompiledModel.getCode()

getCode

public static java.lang.String getCode(PropertyCollection<?,?> collection)
Get the value of the instance : code

Parameters:
collection - new collection from which to fetch the value
Returns:
code

setCode

public java.lang.String setCode(java.lang.String setValue)
(non-Javadoc)

Specified by:
setCode in interface CompiledModel
Parameters:
setValue - new code
Returns:
code value after the change
See Also:
CompiledModel.setCode(java.lang.String)

setCode

public static java.lang.String setCode(PropertyCollection collection,
                                       java.lang.String value)
set the value of the instance : code

Parameters:
collection - new collection on which to set the value
value - new value for : code
Returns:
code

isEnabled

public boolean isEnabled()
(non-Javadoc)

Specified by:
isEnabled in interface EnabledPropertyCollection
Returns:
enabled
See Also:
EnabledPropertyCollection.isEnabled()

isEnabled

public static java.lang.Boolean isEnabled(PropertyCollection<?,?> collection)
Get the value of the instance : enabled

Parameters:
collection - new collection from which to fetch the value
Returns:
enabled

setEnabled

public boolean setEnabled(boolean setValue)
(non-Javadoc)

Specified by:
setEnabled in interface EnabledPropertyCollection
Parameters:
setValue - new enabled
Returns:
enabled value after the change
See Also:
EnabledPropertyCollection.setEnabled(boolean)

setEnabled

public static java.lang.Boolean setEnabled(PropertyCollection collection,
                                           java.lang.Boolean value)
set the value of the instance : enabled

Parameters:
collection - new collection on which to set the value
value - new value for : enabled
Returns:
enabled

getDocumentation

public java.lang.String getDocumentation()
(non-Javadoc)

Specified by:
getDocumentation in interface DocumentedCollection
Returns:
documentation
See Also:
DocumentedCollection.getDocumentation()

getDocumentation

public static java.lang.String getDocumentation(PropertyCollection<?,?> collection)
Get the value of the instance : documentation

Parameters:
collection - new collection from which to fetch the value
Returns:
documentation

setDocumentation

public java.lang.String setDocumentation(java.lang.String setValue)
(non-Javadoc)

Specified by:
setDocumentation in interface DocumentedCollection
Parameters:
setValue - new documentation
Returns:
documentation value after the change
See Also:
DocumentedCollection.setDocumentation(java.lang.String)

setDocumentation

public static java.lang.String setDocumentation(PropertyCollection collection,
                                                java.lang.String value)
set the value of the instance : documentation

Parameters:
collection - new collection on which to set the value
value - new value for : documentation
Returns:
documentation

getName

public java.lang.String getName()
(non-Javadoc)

Specified by:
getName in interface NamedPropertyCollection
Returns:
name
See Also:
NamedPropertyCollection.getName()

getName

public static java.lang.String getName(PropertyCollection<?,?> collection)
Get the value of the instance : name

Parameters:
collection - new collection from which to fetch the value
Returns:
name

setName

public java.lang.String setName(java.lang.String setValue)
(non-Javadoc)

Specified by:
setName in interface NamedPropertyCollection
Parameters:
setValue - new name
Returns:
name value after the change
See Also:
NamedPropertyCollection.setName(java.lang.String)

setName

public static java.lang.String setName(PropertyCollection collection,
                                       java.lang.String value)
set the value of the instance : name

Parameters:
collection - new collection on which to set the value
value - new value for : name
Returns:
name

equals

public boolean equals(java.lang.Object o)
(non-Javadoc)

Overrides:
equals in class AbstractPropertyCollection<java.lang.Object,java.lang.Object>
See Also:
Object.equals(java.lang.Object)

clone

public java.lang.Object clone()
(non-Javadoc)

Specified by:
clone in interface PropertyCollection<java.lang.Object,java.lang.Object>
Overrides:
clone in class AbstractPropertyCollection<java.lang.Object,java.lang.Object>
Returns:
the object clone
See Also:
AbstractPropertyCollection.clone()

setProperty

public java.lang.Object setProperty(java.lang.Object key,
                                    java.lang.Object value)
(non-Javadoc)

Specified by:
setProperty in interface PropertyCollection<java.lang.Object,java.lang.Object>
Overrides:
setProperty in class FixedPropertyInstanceCollection<java.lang.Object,java.lang.Object>
Parameters:
key - the key of the property
value - 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.
Returns:
the added value instance
See Also:
PropertyCollection.setProperty(java.lang.Object,java.lang.Object)

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object key)
(non-Javadoc)

Specified by:
getPropertyValue in interface PropertyCollection<java.lang.Object,java.lang.Object>
Parameters:
key - the property key
Returns:
the property value, null if the get failed
See Also:
PropertyCollection.getPropertyValue(java.lang.Object)

resetListFixedInstances

public static void resetListFixedInstances(DeductionRule instance)
reset all the list fixed instances

Parameters:
instance - the instance that will get all its list fixed instances set

createInstancesAndTypes

public static void createInstancesAndTypes()
create instances and types


fillInstancesAndTypesFromSchema

public static void fillInstancesAndTypesFromSchema(PropertyCollection<?,?> schema)
fill instances and types from a schema

Parameters:
schema - the schema that contains the required instances and types

fillInstancesAndTypes

public static void fillInstancesAndTypes()
fill instances and types phase 1


fillTypeLists

public static void fillTypeLists()
fill instances and types phase 2