Package org.eclipse.esmf.constraint.impl
Class DefaultLengthConstraint
java.lang.Object
org.eclipse.esmf.metamodel.impl.ModelElementImpl
org.eclipse.esmf.metamodel.impl.DefaultConstraint
org.eclipse.esmf.constraint.impl.DefaultLengthConstraint
- All Implemented Interfaces:
Comparable<ModelElementImpl>,LengthConstraint,Constraint,ModelElement,NamedElement
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultLengthConstraint(MetaModelBaseAttributes metaModelBaseAttributes, Optional<BigInteger> minValue, Optional<BigInteger> maxValue) -
Method Summary
Modifier and TypeMethodDescription<T,C> T accept(AspectVisitor<T, C> visitor, C context) Accepts an Aspect visitorbooleanThe upper bound of the length constraint.The lower bound of the length constraint.inthashCode()toString()Methods 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.ModelElement
as, getMetaModelVersion, isMethods inherited from interface org.eclipse.esmf.metamodel.NamedElement
getAspectModelUrn, getDescription, getDescriptions, getName, getPreferredName, getPreferredNames, getSee, hasSyntheticName
-
Constructor Details
-
DefaultLengthConstraint
public DefaultLengthConstraint(MetaModelBaseAttributes metaModelBaseAttributes, Optional<BigInteger> minValue, Optional<BigInteger> maxValue)
-
-
Method Details
-
getMinValue
The lower bound of the length constraint.- Specified by:
getMinValuein interfaceLengthConstraint- Returns:
- the minValue.
-
getMaxValue
The upper bound of the length constraint.- Specified by:
getMaxValuein interfaceLengthConstraint- Returns:
- the maxValue.
-
accept
Accepts an Aspect visitor- Specified by:
acceptin interfaceModelElement- Overrides:
acceptin classDefaultConstraint- 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 classDefaultConstraint
-
equals
- Overrides:
equalsin classModelElementImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classModelElementImpl
-