public class CogStructureType extends AbstractCogType
Cogs.
Copyright 2005-2006 Partner Software, Inc.
| Constructor and Description |
|---|
CogStructureType(Cog state) |
CogStructureType(java.lang.String name,
java.lang.String className)
Creates a "stub" structure; it doesn't include any fields but is sufficient to load the given class as a coggable.
|
CogStructureType(java.lang.String name,
java.lang.String className,
java.lang.String controlName,
Cog prototype,
java.util.List<CogStructureField> fields) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanStructureOf(Cog node)
Cleans the given node structure as best as it can based on available
information.
|
CogStructureField |
fieldNamed(java.lang.String fieldName)
Returns the field corresponding to the given name.
|
java.util.List<CogStructureField> |
getFields()
Returns the list of field definitions, in their defined standard order.
|
java.util.List<CogStructureField> |
listFieldsForGroup(java.lang.String group) |
java.util.List<java.lang.String> |
listGroups()
Lists the names of the field groups.
|
Cog |
toCog()
Returns the complete internal state of this object in the form of a
Cog. |
java.util.List<CogValidationException> |
validate(Cog node)
Validates the given node structure as best it can.
|
buildForm, buildFormField, createNode, getControlName, getControlScript, getControlScriptPath, getJavaClassName, getName, getPrototype, runControlScript, setControlName, setControlScript, setControlScriptPath, setJavaClassName, setName, setPrototype, toStringpublic CogStructureType(Cog state)
public CogStructureType(java.lang.String name,
java.lang.String className,
java.lang.String controlName,
Cog prototype,
java.util.List<CogStructureField> fields)
public CogStructureType(java.lang.String name,
java.lang.String className)
name - className - public void cleanStructureOf(Cog node)
CogTypepublic java.util.List<CogValidationException> validate(Cog node)
CogTypevalidate in interface CogTypevalidate in class AbstractCogTypenode - node to validatepublic Cog toCog()
CoggableCog.toCog in interface CoggabletoCog in class AbstractCogTypepublic java.util.List<CogStructureField> getFields()
public CogStructureField fieldNamed(java.lang.String fieldName)
fieldName - name of desired fieldpublic java.util.List<java.lang.String> listGroups()
public java.util.List<CogStructureField> listFieldsForGroup(java.lang.String group)