|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITypeChecker
A type that describes the structure of a data element.
Additionally a public static method is required to be implemented:
A type checker.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_TYPE
Attribute key for generators who wish to associate a type name |
static java.lang.String |
METHOD_GENERATE
Name of the static method to be invoked for type checkers |
static java.lang.String |
OPTION_TYPECHECKER
Attribute key for generators who wish to associate a type checker |
| Method Summary | |
|---|---|
IComponentDescription |
getDescription()
A description for this type. |
java.lang.String |
getName()
A name for this type. |
IDataElement.Type |
getType()
The structural type this checker matches. |
boolean |
isCompatible(ITypeChecker type)
Whether a data type can be converted to this type. |
boolean |
validate(IDataElement data)
Whether a data element is an instance of this type. |
| Field Detail |
|---|
static final java.lang.String ATTRIBUTE_TYPE
static final java.lang.String METHOD_GENERATE
static final java.lang.String OPTION_TYPECHECKER
| Method Detail |
|---|
IComponentDescription getDescription()
java.lang.String getName()
IDataElement.Type getType()
boolean isCompatible(ITypeChecker type)
type - Type to convert fromboolean validate(IDataElement data)
data - Data element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||