public interface CogType extends Immutable, Coggable
Note that CogTypes are designed to be immutable to prevent problems caused by
errant scripts modifying the type definitions. However, they are also
Coggable, so you can get their internal state, and you can save and load them
as Cog XML and other Cog formats. However, trying to modify an existing
CogType via setState() will result in an
IllegalStateException.
Implementers should generally extend AbstractCogType, which defines
basic behavior and properties for you.
Copyright 2005-2006 Partner Software, Inc.
| Modifier and Type | Method and Description |
|---|---|
FormField |
buildFormField()
Builds a FormField based on the control script.
|
void |
cleanStructureOf(Cog cog)
Cleans the given node structure as best as it can based on available
information.
|
Cog |
createNode()
Creates a new node of this type.
|
java.lang.String |
getControlName()
Name of GUI or web control to use to edit this type.
|
java.lang.String |
getControlScriptPath()
Path to script that builds control to use to edit this type.
|
java.lang.String |
getJavaClassName()
Name of Java class associated with this type.
|
java.lang.String |
getName()
Name of the type, used for lookups in an
CogSchema. |
java.util.List<CogValidationException> |
validate(Cog node)
Validates the given node structure as best it can.
|
void cleanStructureOf(Cog cog)
java.util.List<CogValidationException> validate(Cog node)
node - node to validateCog createNode()
java.lang.String getName()
CogSchema.java.lang.String getJavaClassName()
Coggablejava.lang.String getControlName()
Coggablejava.lang.String getControlScriptPath()
FormField buildFormField()