org.deduced.text.builder.implementation
Class AbstractTextBuilderImplementation

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.text.builder.implementation.AbstractTextBuilderImplementation
All Implemented Interfaces:
java.lang.Cloneable, ConfiguredCollection, PropertyCollection<java.lang.Object,java.lang.Object>, AbstractTextCollection, AbstractTextBuilder

public class AbstractTextBuilderImplementation
extends FixedPropertyInstanceCollection<java.lang.Object,java.lang.Object>
implements AbstractTextBuilder

Java Implementation used to represent the type : abstract text builder 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  Configuration configuration
          member variable holding the value for : configuration
static java.util.Set<java.lang.Object> KEY_SET
          list of keys held in this collection
private  java.lang.String text
          member variable holding the value for : text
 
Fields inherited from class org.deduced.AbstractPropertyCollection
CHECK_DELETE_MODE_AUTOMATIC, CHECK_DELETE_MODE_MANUAL, COLLECTION_TO_DELETE
 
Fields inherited from interface org.deduced.text.builder.AbstractTextBuilder
ABSTRACT_TEXT_BUILDER_TYPE
 
Fields inherited from interface org.deduced.text.AbstractTextCollection
ABSTRACT_TEXT_COLLECTION_TYPE, TEXT_INSTANCE
 
Fields inherited from interface org.deduced.ConfiguredCollection
CONFIGURATION_INSTANCE, CONFIGURED_COLLECTION_TYPE
 
Fields inherited from interface org.deduced.PropertyCollection
PROPERTY_COLLECTION_TYPE
 
Constructor Summary
AbstractTextBuilderImplementation()
          Default constructor for the type : abstract text builder
 
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
 Configuration getConfiguration()
          (non-Javadoc)
static PropertyCollection getConfiguration(PropertyCollection<?,?> collection)
          Get the value of the instance : configuration
 java.lang.Object getPropertyValue(java.lang.Object key)
          (non-Javadoc)
 java.lang.String getText()
          (non-Javadoc)
static java.lang.String getText(PropertyCollection<?,?> collection)
          Get the value of the instance : text
static void resetListFixedInstances(AbstractTextBuilder instance)
          reset all the list fixed instances
 Configuration setConfiguration(Configuration setValue)
          (non-Javadoc)
static PropertyCollection setConfiguration(PropertyCollection collection, PropertyCollection value)
          set the value of the instance : configuration
 java.lang.Object setProperty(java.lang.Object key, java.lang.Object value)
          (non-Javadoc)
static java.lang.String setText(PropertyCollection collection, java.lang.String value)
          set the value of the instance : text
 java.lang.String setText(java.lang.String setValue)
          (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


text

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


configuration

private Configuration configuration
member variable holding the value for : configuration

Constructor Detail

AbstractTextBuilderImplementation

public AbstractTextBuilderImplementation()
Default constructor for the type : abstract text builder

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


getText

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

Specified by:
getText in interface AbstractTextCollection
Returns:
text
See Also:
AbstractTextCollection.getText()

getText

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

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

setText

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

Specified by:
setText in interface AbstractTextCollection
Parameters:
setValue - new text
Returns:
text value after the change
See Also:
AbstractTextCollection.setText(java.lang.String)

setText

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

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

getConfiguration

public Configuration getConfiguration()
(non-Javadoc)

Specified by:
getConfiguration in interface ConfiguredCollection
Returns:
configuration
See Also:
ConfiguredCollection.getConfiguration()

getConfiguration

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

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

setConfiguration

public Configuration setConfiguration(Configuration setValue)
(non-Javadoc)

Specified by:
setConfiguration in interface ConfiguredCollection
Parameters:
setValue - new configuration
Returns:
configuration value after the change
See Also:
ConfiguredCollection.setConfiguration(org.deduced.Configuration)

setConfiguration

public static PropertyCollection setConfiguration(PropertyCollection collection,
                                                  PropertyCollection value)
set the value of the instance : configuration

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

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(AbstractTextBuilder 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