Class AbstractDataTypeProperty<T extends DataType>
java.lang.Object
cool.klass.model.meta.domain.AbstractElement
cool.klass.model.meta.domain.AbstractOrdinalElement
cool.klass.model.meta.domain.AbstractNamedElement
cool.klass.model.meta.domain.AbstractIdentifierElement
cool.klass.model.meta.domain.AbstractTypedElement<T>
cool.klass.model.meta.domain.property.AbstractProperty<T>
cool.klass.model.meta.domain.property.AbstractDataTypeProperty<T>
- All Implemented Interfaces:
Element,ModifierOwner,NamedElement,OrdinalElement,DataTypeProperty,Property,ElementWithSourceCode,NamedElementWithSourceCode,DataTypePropertyWithSourceCode,TypedElement
- Direct Known Subclasses:
EnumerationPropertyImpl,PrimitivePropertyImpl
public abstract class AbstractDataTypeProperty<T extends DataType>
extends AbstractProperty<T>
implements DataTypePropertyWithSourceCode
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAbstractDataTypeProperty.DataTypePropertyBuilder<T extends DataType,TG extends DataType.DataTypeGetter, BuiltElement extends AbstractDataTypeProperty<T>> Nested classes/interfaces inherited from class cool.klass.model.meta.domain.property.AbstractProperty
AbstractProperty.PropertyBuilder<T extends Type,TG extends Type.TypeGetter, BuiltElement extends AbstractProperty<T>> Nested classes/interfaces inherited from class cool.klass.model.meta.domain.AbstractTypedElement
AbstractTypedElement.TypedElementBuilder<T extends Type,TG extends Type.TypeGetter, BuiltElement extends AbstractTypedElement<T>> Nested classes/interfaces inherited from class cool.klass.model.meta.domain.AbstractIdentifierElement
AbstractIdentifierElement.IdentifierElementBuilder<BuiltElement extends AbstractIdentifierElement>Nested classes/interfaces inherited from class cool.klass.model.meta.domain.AbstractNamedElement
AbstractNamedElement.NamedElementBuilder<BuiltElement extends AbstractNamedElement>Nested classes/interfaces inherited from class cool.klass.model.meta.domain.AbstractOrdinalElement
AbstractOrdinalElement.OrdinalElementBuilder<BuiltElement extends AbstractOrdinalElement>Nested classes/interfaces inherited from class cool.klass.model.meta.domain.AbstractElement
AbstractElement.ElementBuilder<BuiltElement extends Element> -
Field Summary
Fields inherited from class cool.klass.model.meta.domain.AbstractTypedElement
typeFields inherited from class cool.klass.model.meta.domain.AbstractOrdinalElement
ordinal -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDataTypeProperty(org.antlr.v4.runtime.ParserRuleContext elementContext, Optional<Element> macroElement, SourceCode sourceCode, int ordinal, KlassParser.IdentifierContext nameContext, T dataType, AbstractClassifier owningClassifier, boolean isOptional) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.collections.api.map.OrderedMap<AssociationEnd,DataTypeProperty> org.eclipse.collections.api.map.OrderedMap<AssociationEnd,DataTypeProperty> org.eclipse.collections.api.list.ImmutableList<Modifier>booleanbooleanbooleantoString()Methods inherited from class cool.klass.model.meta.domain.property.AbstractProperty
getOwningClassifierMethods inherited from class cool.klass.model.meta.domain.AbstractTypedElement
getTypeMethods inherited from class cool.klass.model.meta.domain.AbstractIdentifierElement
getNameContextMethods inherited from class cool.klass.model.meta.domain.AbstractNamedElement
getName, getNameTokenMethods inherited from class cool.klass.model.meta.domain.AbstractOrdinalElement
getOrdinalMethods inherited from class cool.klass.model.meta.domain.AbstractElement
getElementContext, getMacroElement, getSourceCodeObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface cool.klass.model.meta.domain.api.property.DataTypeProperty
getType, isAudit, isCreatedBy, isCreatedOn, isDerived, isFinal, isForeignKeyMatchingKeyOnPath, isForeignKeyWithOpposite, isFrom, isID, isKey, isLastUpdatedBy, isOppositeKey, isPrivate, isRequired, isSystem, isSystemFrom, isSystemRange, isSystemTemporal, isSystemTo, isTemporal, isTemporalInstant, isTemporalRange, isTo, isValid, isValidFrom, isValidRange, isValidTemporal, isValidTo, isVersion, visitMethods inherited from interface cool.klass.model.meta.domain.api.Element
getMacroElementMethods inherited from interface cool.klass.model.meta.domain.api.source.ElementWithSourceCode
getElementContext, getSourceCodeObjectMethods inherited from interface cool.klass.model.meta.domain.api.NamedElement
getNameMethods inherited from interface cool.klass.model.meta.domain.api.source.NamedElementWithSourceCode
getNameTokenMethods inherited from interface cool.klass.model.meta.domain.api.OrdinalElement
getOrdinalMethods inherited from interface cool.klass.model.meta.domain.api.property.Property
getOwningClassifier, visit
-
Constructor Details
-
AbstractDataTypeProperty
protected AbstractDataTypeProperty(@Nonnull org.antlr.v4.runtime.ParserRuleContext elementContext, @Nonnull Optional<Element> macroElement, @Nullable SourceCode sourceCode, int ordinal, @Nonnull KlassParser.IdentifierContext nameContext, @Nonnull T dataType, @Nonnull AbstractClassifier owningClassifier, boolean isOptional)
-
-
Method Details
-
getModifiers
- Specified by:
getModifiersin interfaceDataTypeProperty
-
getMinLengthPropertyValidation
- Specified by:
getMinLengthPropertyValidationin interfaceDataTypeProperty
-
getMaxLengthPropertyValidation
- Specified by:
getMaxLengthPropertyValidationin interfaceDataTypeProperty
-
getMinPropertyValidation
- Specified by:
getMinPropertyValidationin interfaceDataTypeProperty
-
getMaxPropertyValidation
- Specified by:
getMaxPropertyValidationin interfaceDataTypeProperty
-
isOptional
public boolean isOptional()- Specified by:
isOptionalin interfaceDataTypeProperty
-
isForeignKey
public boolean isForeignKey()- Specified by:
isForeignKeyin interfaceDataTypeProperty
-
isForeignKeyToSelf
public boolean isForeignKeyToSelf()- Specified by:
isForeignKeyToSelfin interfaceDataTypeProperty
-
getKeysMatchingThisForeignKey
public org.eclipse.collections.api.map.OrderedMap<AssociationEnd,DataTypeProperty> getKeysMatchingThisForeignKey()- Specified by:
getKeysMatchingThisForeignKeyin interfaceDataTypeProperty
-
getForeignKeysMatchingThisKey
public org.eclipse.collections.api.map.OrderedMap<AssociationEnd,DataTypeProperty> getForeignKeysMatchingThisKey()- Specified by:
getForeignKeysMatchingThisKeyin interfaceDataTypeProperty
-
toString
- Overrides:
toStringin classAbstractNamedElement
-