com.hammurapi.config
Interface Collection

All Superinterfaces:
CommonObject, org.eclipse.emf.ecore.EObject, Factory, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
NamedCollection
All Known Implementing Classes:
CollectionImpl, NamedCollectionImpl

public interface Collection
extends Factory

A representation of the model object 'Collection'. Collection of elements. Configuration runtime can convert collections to arrays, if needed, to match parameter type of setter methods or constructors.

The following features are supported:

See Also:
ConfigPackage.getCollection()

Method Summary
 org.eclipse.emf.common.util.EList<Factory> getElement()
          Returns the value of the 'Element' containment reference list.
 String getType()
          Returns the value of the 'Type' attribute.
 boolean isFactoryCollection()
          Returns the value of the 'Factory Collection' attribute.
 void setFactoryCollection(boolean value)
          Sets the value of the 'Factory Collection' attribute.
 void setType(String value)
          Sets the value of the 'Type' attribute.
 
Methods inherited from interface com.hammurapi.config.Factory
compile, create, getConfigScript, getDescription, getHomePage, getId, getService, getSource, getSupportedExecutionEnvironments, isEnabled, setConfigScript, setDescription, setEnabled, setHomePage, setId
 
Methods inherited from interface com.hammurapi.party.CommonObject
getRoles
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getElement

org.eclipse.emf.common.util.EList<Factory> getElement()
Returns the value of the 'Element' containment reference list. The list contents are of type Factory. Collection element.

Returns:
the value of the 'Element' containment reference list.
See Also:
ConfigPackage.getCollection_Element()

getType

String getType()
Returns the value of the 'Type' attribute. The default value is "java.util.ArrayList". Collection type. Default type is java.util.ArrayList.

Returns:
the value of the 'Type' attribute.
See Also:
setType(String), ConfigPackage.getCollection_Type()

setType

void setType(String value)
Sets the value of the 'Type' attribute.

Parameters:
value - the new value of the 'Type' attribute.
See Also:
getType()

isFactoryCollection

boolean isFactoryCollection()
Returns the value of the 'Factory Collection' attribute. If this property is set to true, then the collection will contain factories instead of values.

Returns:
the value of the 'Factory Collection' attribute.
See Also:
setFactoryCollection(boolean), ConfigPackage.getCollection_FactoryCollection()

setFactoryCollection

void setFactoryCollection(boolean value)
Sets the value of the 'Factory Collection' attribute.

Parameters:
value - the new value of the 'Factory Collection' attribute.
See Also:
isFactoryCollection()