Class DefaultCollection
java.lang.Object
org.eclipse.esmf.metamodel.impl.ModelElementImpl
org.eclipse.esmf.metamodel.impl.DefaultCharacteristic
org.eclipse.esmf.characteristic.impl.DefaultCollection
- All Implemented Interfaces:
Comparable<ModelElementImpl>,Collection,Characteristic,ModelElement,NamedElement
- Direct Known Subclasses:
DefaultList,DefaultSet,DefaultSortedSet
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCollection(MetaModelBaseAttributes metaModelBaseAttributes, Optional<Type> dataType, Optional<Characteristic> elementCharacteristic) -
Method Summary
Modifier and TypeMethodDescription<T,C> T accept(AspectVisitor<T, C> visitor, C context) Accepts an Aspect visitorbooleaninthashCode()booleanEnsures that the property allowDuplicates is set at least once for Collections.booleanEnsures that the property ordered is set at least once for Collections.toString()Methods inherited from class org.eclipse.esmf.metamodel.impl.DefaultCharacteristic
getDataTypeMethods inherited from class org.eclipse.esmf.metamodel.impl.ModelElementImpl
compareTo, getAspectModelUrn, getDescriptions, getMetaModelVersion, getName, getPreferredNames, getSee, hasSyntheticNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.esmf.metamodel.Characteristic
getDataTypeMethods inherited from interface org.eclipse.esmf.metamodel.ModelElement
as, getMetaModelVersion, isMethods inherited from interface org.eclipse.esmf.metamodel.NamedElement
getAspectModelUrn, getDescription, getDescriptions, getName, getPreferredName, getPreferredNames, getSee, hasSyntheticName
-
Constructor Details
-
DefaultCollection
public DefaultCollection(MetaModelBaseAttributes metaModelBaseAttributes, Optional<Type> dataType, Optional<Characteristic> elementCharacteristic)
-
-
Method Details
-
isAllowDuplicates
public boolean isAllowDuplicates()Ensures that the property allowDuplicates is set at least once for Collections.- Specified by:
isAllowDuplicatesin interfaceCollection- Returns:
- the allowDuplicates.
-
isOrdered
public boolean isOrdered()Ensures that the property ordered is set at least once for Collections.- Specified by:
isOrderedin interfaceCollection- Returns:
- the ordered.
-
getElementCharacteristic
- Specified by:
getElementCharacteristicin interfaceCollection- Returns:
Optionalcontaining theCharacteristicdescribing the elements of the Collection
-
getCollectionType
- Specified by:
getCollectionTypein interfaceCollection
-
accept
Accepts an Aspect visitor- Specified by:
acceptin interfaceModelElement- Overrides:
acceptin classDefaultCharacteristic- Type Parameters:
T- The result type of the traversal operationC- The context of the visitor traversal- Parameters:
visitor- The visitor to accept
-
toString
- Overrides:
toStringin classDefaultCharacteristic
-
equals
- Overrides:
equalsin classDefaultCharacteristic
-
hashCode
public int hashCode()- Overrides:
hashCodein classDefaultCharacteristic
-