|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CogType
A datatype for Cogs. Provides framework for configuration- and script-driven description, structure, validation, and defaults.
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.
| Method Summary | |
|---|---|
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 |
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. |
| Methods inherited from interface com.partnersoft.cog.Coggable |
|---|
toCog |
| Method Detail |
|---|
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()
Coggable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||