|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.cog.CogSchema
public class CogSchema
A CogSchema defines the data dictionary for a set of related cogs, such as in a Codex. It defines CogTypes, which provide metadata, validation, etc. functions for Cogs and Cog-based frameworks.
| Constructor Summary | |
|---|---|
CogSchema()
Creates an empty CogSchema. |
|
CogSchema(CogSchema parentSchema)
Creates a CogSchema which inherits types from the given parent schema. |
|
| Method Summary | |
|---|---|
void |
addInheritedSchema(CogSchema newSchema)
|
void |
addStubStructure(java.lang.String typeName,
java.lang.String coggableClassName)
Add a basic structure definition for the given Coggable class name. |
void |
addType(CogType newType)
|
Cog |
createNode(java.lang.String typeName)
Creates a Cog with default values for the given named type. |
java.util.List<CogSchema> |
getInheritedSchemas()
|
Naming<CogType> |
getTypes()
|
java.util.List<CogSchema> |
listInheritedSchemas()
|
void |
setTypes(Naming<CogType> newTypes)
|
CogType |
typeNamed(java.lang.String name)
Looks up a type by name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CogSchema()
public CogSchema(CogSchema parentSchema)
| Method Detail |
|---|
public CogType typeNamed(java.lang.String name)
name - name of Cog datatype.
public Cog createNode(java.lang.String typeName)
CogType.
typeName - name of type used to create node.
public void addType(CogType newType)
public void addInheritedSchema(CogSchema newSchema)
public void addStubStructure(java.lang.String typeName,
java.lang.String coggableClassName)
public Naming<CogType> getTypes()
public void setTypes(Naming<CogType> newTypes)
public java.util.List<CogSchema> listInheritedSchemas()
public java.util.List<CogSchema> getInheritedSchemas()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||