Class AntlrDataTypeProperty<T extends DataType>
java.lang.Object
cool.klass.model.converter.compiler.state.AntlrElement
cool.klass.model.converter.compiler.state.AntlrOrdinalElement
cool.klass.model.converter.compiler.state.AntlrNamedElement
cool.klass.model.converter.compiler.state.AntlrIdentifierElement
cool.klass.model.converter.compiler.state.property.AntlrProperty
cool.klass.model.converter.compiler.state.property.AntlrDataTypeProperty<T>
- All Implemented Interfaces:
IAntlrElement
- Direct Known Subclasses:
AntlrEnumerationProperty,AntlrPrimitiveProperty
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AntlrDataTypePropertyprotected final booleanprotected final org.eclipse.collections.api.list.MutableList<AntlrMaxLengthPropertyValidation>protected final org.eclipse.collections.api.list.MutableList<AntlrMaxPropertyValidation>protected final org.eclipse.collections.api.list.MutableList<AntlrMinLengthPropertyValidation>protected final org.eclipse.collections.api.list.MutableList<AntlrMinPropertyValidation>static final AntlrDataTypePropertyprotected final AntlrClassifierprotected final org.eclipse.collections.api.list.MutableList<AbstractAntlrPropertyValidation>Fields inherited from class cool.klass.model.converter.compiler.state.AntlrIdentifierElement
AMBIGUOUS_IDENTIFIER_CONTEXT, NOT_FOUND_IDENTIFIER_CONTEXTFields inherited from class cool.klass.model.converter.compiler.state.AntlrNamedElement
CONSTANT_NAME_PATTERN, JAVA_KEYWORDS, JAVA_LITERALS, MEMBER_NAME_PATTERN, nameContext, PACKAGE_NAME_PATTERN, RELADOMO_TYPES, SQL_KEYWORDS, TYPE_NAME_PATTERNFields inherited from class cool.klass.model.converter.compiler.state.AntlrOrdinalElement
ordinalFields inherited from class cool.klass.model.converter.compiler.state.AntlrElement
AMBIGUOUS_PARENT, compilationUnit, elementContext, NOT_FOUND_PARENT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAntlrDataTypeProperty(org.antlr.v4.runtime.ParserRuleContext elementContext, Optional<CompilationUnit> compilationUnit, int ordinal, KlassParser.IdentifierContext nameContext, AntlrClassifier owningClassifier, boolean isOptional) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMaxLengthValidation(AntlrMaxLengthPropertyValidation maxLengthValidation) voidaddMaxValidation(AntlrMaxPropertyValidation maxValidation) voidaddMinLengthValidation(AntlrMinLengthPropertyValidation minLengthValidation) voidaddMinValidation(AntlrMinPropertyValidation minValidation) abstract AbstractDataTypeProperty.DataTypePropertyBuilder<T,?, ?> build()voidbuild2()protected voidabstract AbstractDataTypeProperty.DataTypePropertyBuilder<T,?, ?> org.eclipse.collections.api.map.OrderedMap<AntlrAssociationEnd,org.eclipse.collections.api.list.MutableList<AntlrDataTypeProperty<?>>> org.eclipse.collections.api.list.ListIterable<AntlrMaxLengthPropertyValidation>org.eclipse.collections.api.list.ListIterable<AntlrMaxPropertyValidation>org.eclipse.collections.api.list.ListIterable<AntlrMinLengthPropertyValidation>org.eclipse.collections.api.list.ListIterable<AntlrMinPropertyValidation>org.eclipse.collections.api.list.ImmutableList<AntlrDataTypeProperty<?>>protected abstract org.antlr.v4.runtime.ParserRuleContextorg.eclipse.collections.api.list.ListIterable<AbstractAntlrPropertyValidation>booleanisAudit()booleanbooleanbooleanisFrom()booleanisId()booleanisKey()booleanbooleanisSystem()booleanbooleanbooleanbooleanisTo()booleanisUserId()booleanisValid()booleanbooleanbooleanvoidreportErrors(CompilerAnnotationHolder compilerAnnotationHolder) voidreportIdPropertyWithKeyProperties(CompilerAnnotationHolder compilerAnnotationHolder) protected voidreportInvalidAuditProperties(CompilerAnnotationHolder compilerAnnotationHolder) protected abstract voidreportInvalidIdProperties(CompilerAnnotationHolder compilerAnnotationHolder) voidreportKeyPropertyWithIdProperties(CompilerAnnotationHolder compilerAnnotationHolder) voidreportTransientIdProperties(CompilerAnnotationHolder compilerAnnotationHolder) voidsetForeignKeyMatchingThisKey(AntlrAssociationEnd associationEnd, AntlrDataTypeProperty<?> foreignKeyProperty) voidsetKeyMatchingThisForeignKey(AntlrAssociationEnd associationEnd, AntlrDataTypeProperty<?> keyProperty) toString()Methods inherited from class cool.klass.model.converter.compiler.state.property.AntlrProperty
enterModifier, getContextBefore, getModifiers, getModifiersByName, getNamePattern, getNumModifiers, getType, getTypeName, isContext, isCreatedBy, isFinal, isLastUpdatedBy, isPrivate, isVersion, reportAuditErrors, reportDuplicateAuditModifiers, reportDuplicateMemberName, reportDuplicatePropertyWithModifiers, reportUnreferencedPrivatePropertyMethods inherited from class cool.klass.model.converter.compiler.state.AntlrIdentifierElement
getNameContextMethods inherited from class cool.klass.model.converter.compiler.state.AntlrNamedElement
getName, reportKeywordCollision, reportNameErrorsMethods inherited from class cool.klass.model.converter.compiler.state.AntlrOrdinalElement
getOrdinalMethods inherited from class cool.klass.model.converter.compiler.state.AntlrElement
getCompilationUnit, getElementContext, getMacroElement, getMacroElementBuilder, getSourceCodeBuilder, getSourceText, getSourceTextLenient, hasMacro, isForwardReference, isInSameCompilationUnitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface cool.klass.model.converter.compiler.state.IAntlrElement
gatherSurroundingElements, getContextAfter, getEntireContext, getSurroundingElement, getSurroundingElements, reportAuditErrors
-
Field Details
-
AMBIGUOUS
-
NOT_FOUND
-
isOptional
protected final boolean isOptional -
owningClassifier
-
validations
protected final org.eclipse.collections.api.list.MutableList<AbstractAntlrPropertyValidation> validations -
minLengthValidations
protected final org.eclipse.collections.api.list.MutableList<AntlrMinLengthPropertyValidation> minLengthValidations -
maxLengthValidations
protected final org.eclipse.collections.api.list.MutableList<AntlrMaxLengthPropertyValidation> maxLengthValidations -
minValidations
protected final org.eclipse.collections.api.list.MutableList<AntlrMinPropertyValidation> minValidations -
maxValidations
protected final org.eclipse.collections.api.list.MutableList<AntlrMaxPropertyValidation> maxValidations
-
-
Constructor Details
-
AntlrDataTypeProperty
protected AntlrDataTypeProperty(@Nonnull org.antlr.v4.runtime.ParserRuleContext elementContext, @Nonnull Optional<CompilationUnit> compilationUnit, int ordinal, @Nonnull KlassParser.IdentifierContext nameContext, @Nonnull AntlrClassifier owningClassifier, boolean isOptional)
-
-
Method Details
-
getSurroundingElement
-
getTypeParserRuleContext
protected abstract org.antlr.v4.runtime.ParserRuleContext getTypeParserRuleContext() -
isKey
public boolean isKey() -
isId
public boolean isId() -
isUserId
public boolean isUserId() -
isAudit
public boolean isAudit() -
isCreatedOn
public boolean isCreatedOn() -
isOptional
public boolean isOptional() -
isSystem
public boolean isSystem() -
isValid
public boolean isValid() -
isValidRange
public boolean isValidRange() -
isValidFrom
public boolean isValidFrom() -
isValidTo
public boolean isValidTo() -
isSystemRange
public boolean isSystemRange() -
isSystemFrom
public boolean isSystemFrom() -
isSystemTo
public boolean isSystemTo() -
isFrom
public boolean isFrom() -
isTo
public boolean isTo() -
setKeyMatchingThisForeignKey
public void setKeyMatchingThisForeignKey(AntlrAssociationEnd associationEnd, AntlrDataTypeProperty<?> keyProperty) -
setForeignKeyMatchingThisKey
public void setForeignKeyMatchingThisKey(AntlrAssociationEnd associationEnd, AntlrDataTypeProperty<?> foreignKeyProperty) -
addMinLengthValidation
-
addMaxLengthValidation
-
addMinValidation
-
addMaxValidation
-
getValidations
public org.eclipse.collections.api.list.ListIterable<AbstractAntlrPropertyValidation> getValidations() -
getMinLengthValidations
public org.eclipse.collections.api.list.ListIterable<AntlrMinLengthPropertyValidation> getMinLengthValidations() -
getMaxLengthValidations
public org.eclipse.collections.api.list.ListIterable<AntlrMaxLengthPropertyValidation> getMaxLengthValidations() -
getMinValidations
public org.eclipse.collections.api.list.ListIterable<AntlrMinPropertyValidation> getMinValidations() -
getMaxValidations
public org.eclipse.collections.api.list.ListIterable<AntlrMaxPropertyValidation> getMaxValidations() -
getElementBuilder
@Nonnull public abstract AbstractDataTypeProperty.DataTypePropertyBuilder<T,?, getElementBuilder()?> - Specified by:
getElementBuilderin classAntlrProperty
-
getOwningClassifier
- Specified by:
getOwningClassifierin classAntlrProperty
-
getOverriddenProperties
public org.eclipse.collections.api.list.ImmutableList<AntlrDataTypeProperty<?>> getOverriddenProperties() -
build
- Specified by:
buildin classAntlrProperty
-
buildValidations
protected void buildValidations() -
build2
public void build2() -
reportErrors
@OverridingMethodsMustInvokeSuper public void reportErrors(@Nonnull CompilerAnnotationHolder compilerAnnotationHolder) - Overrides:
reportErrorsin classAntlrProperty
-
reportInvalidIdProperties
protected abstract void reportInvalidIdProperties(@Nonnull CompilerAnnotationHolder compilerAnnotationHolder) -
reportInvalidAuditProperties
- Overrides:
reportInvalidAuditPropertiesin classAntlrProperty
-
reportIdPropertyWithKeyProperties
-
reportKeyPropertyWithIdProperties
-
reportTransientIdProperties
-
toString
- Overrides:
toStringin classAntlrProperty
-
getShortString
- Overrides:
getShortStringin classAntlrProperty
-
getKeysMatchingThisForeignKey
public org.eclipse.collections.api.map.OrderedMap<AntlrAssociationEnd,org.eclipse.collections.api.list.MutableList<AntlrDataTypeProperty<?>>> getKeysMatchingThisForeignKey() -
isForeignKey
public boolean isForeignKey()
-