|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.cog.AbstractCogType
com.partnersoft.cog.CogStructureType
public class CogStructureType
Describes structure-like Cogs.
Copyright 2005-2006 Partner Software, Inc.
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.partnersoft.cog.AbstractCogType |
|---|
createNode, getControlName, getJavaClassName, getName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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 - | Method Detail |
|---|
public void cleanStructureOf(Cog node)
CogType
public java.util.List<CogValidationException> validate(Cog node)
CogType
validate 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 field
public java.util.List<java.lang.String> listGroups()
public java.util.List<CogStructureField> listFieldsForGroup(java.lang.String group)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||