Package adalid.core
Class AbstractExpression
java.lang.Object
adalid.core.AbstractArtifact
adalid.core.AbstractExpression
- All Implemented Interfaces:
Wrappable,Artifact,Expression,NaryExpression,NaryOperation,TypedArtifact
- Direct Known Subclasses:
AbstractComparisonX,AbstractConditionalX,AbstractDataAggregateX,AbstractNaryVectorX,AbstractOrderedPairX,AbstractRowsAggregateX,AbstractScalarX,VariantX
- Author:
- Jorge Campins
-
Field Summary
Fields inherited from class adalid.core.AbstractArtifact
_de_, _of_, BR, ENGLISH, FWGTS, FWLTS, HT, PORTUGUESE, SPANISH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddVerifiedUsage(ExpressionUsage usage, Artifact user) protected voidprotected voidprotected voidcheckUnusualArguments(String expression, org.apache.log4j.Level level) protected voidcheckUnusualInstance(String expression, org.apache.log4j.Level level, Instance argument) protected voidcopyDataType(Object object) protected StringfieldsToString(int n, String key, boolean verbose, boolean fields, boolean maps) booleanfinalise()dot the i's and cross the t'sgetCorrespondingReferencedColumnsList(QueryTable searchQueryTable1, QueryTable searchQueryTable2) getCrossReferencedExpressionsSet(Entity declaringEntity) Class<?> Class<? extends ExpressionWrapper> Class<?> getLocalizedCollectionLabel(Locale locale) getLocalizedDescription(Locale locale) getLocalizedLabel(Locale locale) getLocalizedShortDescription(Locale locale) getLocalizedShortLabel(Locale locale) protected Class<?> getObjectDataType(Object object) getReferencedJoinsList(QueryTable queryTable) getReferencedJoinsMap(QueryTable queryTable) getVerifiedUsers(ExpressionUsage usage) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisSingleEntityExpression(Entity declaringEntity) booleanbooleanprotected voidsetDataType(Class<?> dataType) protected voidsetForeignExpressionField(Field foreignExpressionField) voidsetLogicalTautology(boolean tautology) voidvoidsetTransitionTimestamp(TimestampProperty timestamp) Methods inherited from class adalid.core.AbstractArtifact
a, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttributes, annotate, b, b, bigDecimal, bigDecimal, bigDecimal, bigDecimal, bigDecimal, bigInteger, bigInteger, bigInteger, bigInteger, bigInteger, checkName, checkScope, classToString, clearAttributes, coalesce, copyBootstrappingAttributes, copyLocalizedStrings, defaultLocale, depth, fa, finish, getAlias, getAttribute, getAttribute, getAttributes, getAttributesArray, getAttributesArray, getAttributesKeySetByRegex, getBooleanAttribute, getBooleanAttribute, getClassPath, getCrypticName, getDeclaringArtifact, getDeclaringEntity, getDeclaringEntityRoot, getDeclaringField, getDeclaringFieldEntityRoot, getDeclaringFieldIndex, getDeclaringFieldNamedClassSimpleName, getDeclaringFieldPersistentEntityRoot, getDeclaringFieldPersistentEntityTableRoot, getDeclaringOperation, getDeclaringPersistentEntity, getDeclaringPersistentEntityRoot, getDefaultCollectionLabel, getDefaultCollectionShortLabel, getDefaultColumnHeader, getDefaultDescription, getDefaultLabel, getDefaultLocale, getDefaultShortDescription, getDefaultShortLabel, getDefaultSymbol, getDefaultTooltip, getFullName, getInlineHelpType, getIntegerAttribute, getIntegerAttribute, getIntegerAttribute, getIntegerAttribute, getKeyFeatures, getKeyValuePairAttribute, getKeyValuePairAttribute, getKeyValuePairAttribute, getKeyValuePairAttribute, getLocalizedColumnHeader, getLocalizedSymbol, getLocalizedTooltip, getName, getPartialName, getPartialSqlName, getPathList, getPathString, getSqlName, getStringAttribute, getStringAttribute, getStringAttribute, getStringAttribute, getStringKeyValuePairAttribute, getStringKeyValuePairAttribute, getTrace, getValidFieldAnnotations, getValidTypeAnnotations, getValueString, getValueString, getWrapper, greaterThanZero, h1, h2, h3, h4, h5, h6, hashCodeHexString, i, i, ic, ic, isAnnotated, isClassInPath, isDeclared, isExpression, isFinalised, isFinished, isFontAwesomeClass, isInherited, isInheritedFromAbstract, isInheritedFromConcrete, isLocalizedSymbolDefined, isNotDeclared, isNotInherited, isNotInheritedFromAbstract, isNotInheritedFromConcrete, isOperation, isUnicodeSymbolClass, isValidEmbeddedDocument, isValidFieldAnnotation, isValidHelpFileName, isValidHelpFileType, isValidJavaClassName, isValidSnippetFileName, isValidTypeAnnotation, localeReadingKey, localeWritingKey, m, m, mapsToString, put, round, s, s, setAlias, setDefaultCollectionLabel, setDefaultCollectionShortLabel, setDefaultColumnHeader, setDefaultColumnHeader, setDefaultDescription, setDefaultLabel, setDefaultShortDescription, setDefaultShortLabel, setDefaultShortLabel, setDefaultSymbol, setDefaultTooltip, setInlineHelpType, setLocalizedCollectionLabel, setLocalizedCollectionShortLabel, setLocalizedColumnHeader, setLocalizedColumnHeader, setLocalizedDescription, setLocalizedLabel, setLocalizedShortDescription, setLocalizedShortLabel, setLocalizedShortLabel, setLocalizedSymbol, setLocalizedTooltip, setSqlName, setStaticAttributes, settler, setTrace, specified, specified, specified, specified, specified, specified, specified, specified, toString, toString, toString, toString, toString, toString, u, u, ul, verifyExpression, verifyExpression, verifyExpression, verifyExpression, verifyExpression, verifyExpression, verifyNames, xsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface adalid.core.interfaces.Artifact
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttributes, clearAttributes, depth, finish, getAlias, getAttribute, getAttribute, getClassPath, getCrypticName, getDeclaringArtifact, getDeclaringEntity, getDeclaringEntityRoot, getDeclaringField, getDeclaringFieldEntityRoot, getDeclaringFieldIndex, getDeclaringFieldPersistentEntityRoot, getDeclaringFieldPersistentEntityTableRoot, getDeclaringOperation, getDeclaringPersistentEntity, getDeclaringPersistentEntityRoot, getDefaultCollectionLabel, getDefaultCollectionShortLabel, getDefaultColumnHeader, getDefaultDescription, getDefaultLabel, getDefaultLocale, getDefaultShortDescription, getDefaultShortLabel, getDefaultSymbol, getDefaultTooltip, getFullName, getKeyFeatures, getLocalizedColumnHeader, getLocalizedSymbol, getLocalizedTooltip, getName, getPartialName, getPathList, getPathString, getSqlName, hashCodeHexString, isAnnotated, isClassInPath, isDeclared, isExpression, isFinalised, isFinished, isInherited, isInheritedFromAbstract, isInheritedFromConcrete, isNotDeclared, isNotInherited, isNotInheritedFromAbstract, isNotInheritedFromConcrete, isOperation, put, round, setAlias, setDefaultCollectionLabel, setDefaultCollectionShortLabel, setDefaultColumnHeader, setDefaultColumnHeader, setDefaultDescription, setDefaultLabel, setDefaultShortDescription, setDefaultShortLabel, setDefaultShortLabel, setDefaultSymbol, setDefaultTooltip, setLocalizedCollectionLabel, setLocalizedCollectionShortLabel, setLocalizedColumnHeader, setLocalizedColumnHeader, setLocalizedDescription, setLocalizedLabel, setLocalizedShortDescription, setLocalizedShortLabel, setLocalizedShortLabel, setLocalizedSymbol, setLocalizedTooltip, setSqlName, toString, toString, toString, toStringMethods inherited from interface adalid.core.interfaces.Expression
getOperands, getOperatorMethods inherited from interface adalid.core.interfaces.NaryOperation
getOperands, getOperator
-
Constructor Details
-
AbstractExpression
public AbstractExpression()
-
-
Method Details
-
getInitialStateBusinessOperationsList
-
getFinalStateBusinessOperationsList
-
getDataType
- Specified by:
getDataTypein interfaceTypedArtifact- Returns:
- the data type
-
setDataType
- Parameters:
dataType- the type to set
-
getParentExpression
- Specified by:
getParentExpressionin interfaceExpression- Returns:
- the parent expression
-
getForeignExpressionField
- Returns:
- the foreign expression field
-
setForeignExpressionField
- Parameters:
foreignExpressionField- the foreign expression field to set
-
getForeignExpressionName
- Returns:
- the foreign expression name
-
getForeignExpressionType
- Returns:
- the foreign expression type
-
getVerifiedUsages
- Specified by:
getVerifiedUsagesin interfaceExpression- Returns:
- the verified usages
-
getVerifiedUsageMap
- Specified by:
getVerifiedUsageMapin interfaceExpression- Returns:
- the verified usages
-
getVerifiedUsers
- Specified by:
getVerifiedUsersin interfaceExpression- Parameters:
usage- the expression usage- Returns:
- the verified user list
-
addVerifiedUsage
- Specified by:
addVerifiedUsagein interfaceExpression- Parameters:
usage- the expression usageuser- the artifact that makes use of this expression- Returns:
- the verified user list
-
isLogicalTautology
public boolean isLogicalTautology() -
setLogicalTautology
public void setLogicalTautology(boolean tautology) -
getTransitionTimestamp
-
setTransitionTimestamp
-
setTransitionDate
-
getStringsSet
- Specified by:
getStringsSetin interfaceExpression- Returns:
- the strings set
-
getReferencedColumnsList
- Specified by:
getReferencedColumnsListin interfaceExpression- Returns:
- the referenced columns list
-
getCorrespondingReferencedColumnsList
public List<Property> getCorrespondingReferencedColumnsList(QueryTable searchQueryTable1, QueryTable searchQueryTable2) -
getReferencedColumnsMap
- Specified by:
getReferencedColumnsMapin interfaceExpression- Returns:
- the referenced columns map
-
getReferencedJoinsList
- Specified by:
getReferencedJoinsListin interfaceExpression- Returns:
- the referenced joins list
-
getReferencedJoinsList
- Specified by:
getReferencedJoinsListin interfaceExpression- Parameters:
queryTable- query table- Returns:
- the referenced joins list
-
getReferencedJoinsMap
- Specified by:
getReferencedJoinsMapin interfaceExpression- Returns:
- the referenced joins map
-
getReferencedJoinsMap
- Specified by:
getReferencedJoinsMapin interfaceExpression- Parameters:
queryTable- query table- Returns:
- the referenced joins map
-
getCrossReferencedExpressionsSet
- Specified by:
getCrossReferencedExpressionsSetin interfaceExpression- Returns:
- the referenced expressions map
-
getCrossReferencedExpressionsSet
- Specified by:
getCrossReferencedExpressionsSetin interfaceExpression- Parameters:
declaringEntity- declaring entity- Returns:
- the referenced expressions map
-
getCrossReferencedExpressionsKey
- Specified by:
getCrossReferencedExpressionsKeyin interfaceExpression
-
isCrossReferencedExpression
public boolean isCrossReferencedExpression()- Specified by:
isCrossReferencedExpressionin interfaceExpression
-
isSingleEntityExpression
public boolean isSingleEntityExpression()- Specified by:
isSingleEntityExpressionin interfaceExpression- Returns:
- true if is a TemporalExpression; otherwise false
-
isSingleEntityExpression
- Specified by:
isSingleEntityExpressionin interfaceExpression- Parameters:
declaringEntity- declaring entity- Returns:
- true if is a TemporalExpression; otherwise false
-
isBooleanExpression
public boolean isBooleanExpression()- Returns:
- true if is a BooleanExpression; otherwise false
-
isCharacterExpression
public boolean isCharacterExpression()- Returns:
- true if is a CharacterExpression; otherwise false
-
isEntityExpression
public boolean isEntityExpression()- Returns:
- true if is a EntityExpression; otherwise false
-
isNumericExpression
public boolean isNumericExpression()- Returns:
- true if is a NumericExpression; otherwise false
-
isTemporalExpression
public boolean isTemporalExpression()- Returns:
- true if is a TemporalExpression; otherwise false
-
isComparisonExpression
public boolean isComparisonExpression()- Returns:
- true if is a ComparisonX; otherwise false
-
isConditionalExpression
public boolean isConditionalExpression()- Returns:
- true if is a ConditionalX; otherwise false
-
isDataAggregateExpression
public boolean isDataAggregateExpression()- Returns:
- true if is a DataAggregateX; otherwise false
-
isOrderedPairExpression
public boolean isOrderedPairExpression()- Returns:
- true if is a OrderedPairX; otherwise false
-
isRowsAggregateExpression
public boolean isRowsAggregateExpression()- Returns:
- true if is a RowsAggregateX; otherwise false
-
isScalarExpression
public boolean isScalarExpression()- Returns:
- true if is a ScalarX; otherwise false
-
isVariantExpression
public boolean isVariantExpression()- Returns:
- true if is a TemporalExpression; otherwise false
-
finalise
public boolean finalise()Description copied from interface:Artifactdot the i's and cross the t's- Specified by:
finalisein interfaceArtifact- Overrides:
finalisein classAbstractArtifact- Returns:
- true if this artifact was successfully finalised; otherwise false
-
checkArguments
protected void checkArguments() -
checkUnusualArguments
-
checkUnusualInstance
-
checkStateAttributes
protected void checkStateAttributes() -
copyDataType
-
getObjectDataType
-
getForeignExpression
-
getDefaultWrapperClass
- Specified by:
getDefaultWrapperClassin interfaceWrappable- Overrides:
getDefaultWrapperClassin classAbstractArtifact- Returns:
- the default wrapper class
-
getLocalizedLabel
- Specified by:
getLocalizedLabelin interfaceArtifact- Overrides:
getLocalizedLabelin classAbstractArtifact- Parameters:
locale- the locale for the label- Returns:
- the localized label
-
getLocalizedShortLabel
- Specified by:
getLocalizedShortLabelin interfaceArtifact- Overrides:
getLocalizedShortLabelin classAbstractArtifact- Parameters:
locale- the locale for the short label- Returns:
- the localized short label
-
getLocalizedCollectionLabel
- Specified by:
getLocalizedCollectionLabelin interfaceArtifact- Overrides:
getLocalizedCollectionLabelin classAbstractArtifact- Parameters:
locale- the locale for the collection label- Returns:
- the localized collection label
-
getLocalizedCollectionShortLabel
- Specified by:
getLocalizedCollectionShortLabelin interfaceArtifact- Overrides:
getLocalizedCollectionShortLabelin classAbstractArtifact- Parameters:
locale- the locale for the collection short label- Returns:
- the localized collection short label
-
getLocalizedDescription
- Specified by:
getLocalizedDescriptionin interfaceArtifact- Overrides:
getLocalizedDescriptionin classAbstractArtifact- Parameters:
locale- the locale for the description- Returns:
- the localized description
-
getLocalizedShortDescription
- Specified by:
getLocalizedShortDescriptionin interfaceArtifact- Overrides:
getLocalizedShortDescriptionin classAbstractArtifact- Parameters:
locale- the locale for the short description- Returns:
- the localized short description
-
getExpressionString
- Specified by:
getExpressionStringin interfaceExpression- Returns:
- the pseudo-expression
-
fieldsToString
- Overrides:
fieldsToStringin classAbstractArtifact
-