Package com.streambase.sb
Class DataType.Checklist
java.lang.Object
com.streambase.sb.DataType.Checklist
- Enclosing class:
- DataType
Validate types against registered types
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Check typesvoid
check
(Collection<DataType> types) Check typesreturn all of the factoriesvoid
Indicate that all factories have been added.com.streambase.sb.DataType.Registry.Functor
get
(CompleteDataType type) Return the factory for the specified CompleteDataType.com.streambase.sb.DataType.Registry.Functor
Return the factory for the specified DataType.com.streambase.sb.DataType.Registry.Functor
get
(Schema.Field field) Return the factory for the type of the specified Field.void
Register the specified factory associated with the specified DataType.void
register
(Collection<DataType> types, com.streambase.sb.DataType.Registry.Functor factory) Convenience method to register the same factory with multiple data types.void
Register the specified factories with the specifiedDataType
s.
-
Constructor Details
-
Checklist
public Checklist()
-
-
Method Details
-
check
Check types- Parameters:
types
- types to validate
-
check
Check types- Parameters:
types
- types to validate
-
finishedRegistering
public void finishedRegistering()Indicate that all factories have been added. A runtime error will be thrown if a factory has not been registered for one or more DataType's. -
register
Register the specified factory associated with the specified DataType.- Parameters:
type
- data type associated with a factoryfactory
- a factory
-
register
Register the specified factories with the specifiedDataType
s.- Parameters:
factories
- factories associated with a data type- Since:
- 6.6
-
register
public void register(Collection<DataType> types, com.streambase.sb.DataType.Registry.Functor factory) Convenience method to register the same factory with multiple data types.- Parameters:
types
- the set of types; callers should consider using an EnumSet<DataType>factory
- factory for the data types
-
get
Return the factory for the specified DataType.- Parameters:
type
- the DataType- Returns:
- the factory
-
get
Return the factory for the specified CompleteDataType.- Parameters:
type
- the CompleteDataType- Returns:
- the factory
-
get
Return the factory for the type of the specified Field.- Parameters:
field
- the Field- Returns:
- the factory
-
factories
return all of the factories- Returns:
- the factories
-