Class ExternalDataTypeProvider
java.lang.Object
com.semedy.reasoner.api.symboltable.ExternalDataTypeProvider
- All Implemented Interfaces:
Iterable<ExternalDataType>
manages a list of external data types and the sequence they are applied
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExternalDataType
(int id) return the external data type by iditerator()
Enumerate the ExternalDataTypes.void
registerExternalDataType
(ExternalDataType datatype) add a ExternalDataType at the last positionvoid
registerExternalDataType
(ExternalDataType datatype, int index) add a ExternalDataType at indexMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ExternalDataTypeProvider
public ExternalDataTypeProvider()
-
-
Method Details
-
iterator
Enumerate the ExternalDataTypes.
This sequence also shows the application sequence of the ExternalDataTypes- Specified by:
iterator
in interfaceIterable<ExternalDataType>
- Returns:
-
registerExternalDataType
add a ExternalDataType at index- Parameters:
datatype
- , the external data typeindex
- , the index to insert it into list of data types
-
registerExternalDataType
add a ExternalDataType at the last position- Parameters:
datatype
- , the external data type
-
getExternalDataType
return the external data type by id- Parameters:
id
-- Returns:
-