Interface TypeComputer
-
- All Known Subinterfaces:
ContentTypeComputer
,ContextTypeComputer
- All Known Implementing Classes:
AbstractInvocationTypeComputer
,AccessRightTypeComputer
,AreaTypeComputer
,CyrillicTypeComputer
,DcsParameterTypeComputer
,EmptyTypeComputer
,EventTypeComputer
,FormAttributeTypeComputer
,FormatTypeComputer
,FormNameTypeComputer
,FqnTypeComputer
,FullNameTypeComputerDataLock
,FunctionalOptionTypeComputer
,KeysTypeComputer
,KeyTypeComputer
,LatinTypeComputer
,MethodNameTypeComputer
,NonWordsTypeComputer
,NstrTypeComputer
,ObjectAttributeTypeComputer
,PredefinedTypeComputer
,QueryCtorTypeComputer
,QueryDcsCtorTypeComputer
,QueryDcsPropertyTextTypeComputer
,QueryDcsTypeComputer
,QueryPropertyTextTypeComputer
,QuerySchemaMethodTypeComputer
,QueryTypeComputer
,SettingsKeyTypeComputer
,SortColumnsTypeComputer
,StructureKeyTypeComputer
,TemplateNameTypeComputer
,TypeFuncCtorTypeComputer
,TypesTypeComputer
,TypeTypeComputer
,UuidCtorTypeComputer
,UuidTypeComputer
,XdtoFactoryPackageCollectionPackageTypeComputer
,XdtoFactoryPackageTypeComputer
,XdtoFactoryTypeTypeComputer
public interface TypeComputer
The abstract interfaceTypeComputer
to implement computer of single type of string literal. Implementation should be registered in extension point.Type computer service
explicitly calls first all implementations ofcontext computers
within order and then calls allcontent computers
within order.- See Also:
ContextTypeComputer
,ContentTypeComputer
,TypeValidator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
computeWithAnnotations(Collection<LiteralType> types)
Whether to compute it or not if any annotations set.String
getSupportedType()
Returns the supported type ID of this computer.default boolean
isSupport(StringLiteral literal, List<String> content)
Quick checks if type computer is support the literal.default int
order()
Order of call to compute string literal type.
-
-
-
Method Detail
-
getSupportedType
String getSupportedType()
Returns the supported type ID of this computer.- Returns:
- the supported type ID, registered in extension point.
-
isSupport
default boolean isSupport(StringLiteral literal, List<String> content)
Quick checks if type computer is support the literal. This method explicitly calls before#computeIsValidForSupportedType(StringLiteral, List)
- Parameters:
literal
- the literalcontent
- the content- Returns:
- true, if the literal is support by computer
-
computeWithAnnotations
default boolean computeWithAnnotations(Collection<LiteralType> types)
Whether to compute it or not if any annotations set. Must call it before#computeIsValidForSupportedType(StringLiteral, List)
method. Method calls in addition toLiteralType.computeWithAnnotation()
, so if type not need to compute with other set annotations by default, this type computer can compute it any way. Default is false to respect Literal type's settings.- Parameters:
types
- the types from annotations- Returns:
- true, if need to compute
-
order
default int order()
Order of call to compute string literal type.- Returns:
- the order of call
-
-