public class WGContentTypeDefinition extends WGSchemaDocumentDefinition
Constructor and Description |
---|
WGContentTypeDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
addContentItemDefinition(WGContentItemDefinition itemDef)
Adds a new content item definition to the schema
|
void |
addContentMetaDefinition(WGMetaFieldDefinition metaDef)
Adds a new metadata field definition to the schema
|
java.util.List<WGContentItemDefinition> |
getContentItemDefinitions()
Returns definitions of items for content documents of this content type
|
java.util.List<WGMetaFieldDefinition> |
getContentMetaDefinitions()
Returns predefined metadata field values for this content type
|
int |
getDocumentType()
Returns the type number of the document type of this definition
|
void |
setContentItemDefinitions(java.util.List<WGContentItemDefinition> itemDefinitions)
Sets definitions of items for content documents of this content type
|
void |
setContentMetaDefinitions(java.util.List<WGMetaFieldDefinition> contentMetaDefinitions)
Sets metadata field definitions to the schema
|
addMetadata, getDocumentKey, getMetadata, getMetadataCache, getName, init, isAutoCreate, setAutoCreate, setMetadata, setName
public java.util.List<WGContentItemDefinition> getContentItemDefinitions()
public void setContentItemDefinitions(java.util.List<WGContentItemDefinition> itemDefinitions)
public void addContentItemDefinition(WGContentItemDefinition itemDef)
public int getDocumentType()
WGSchemaDocumentDefinition
getDocumentType
in class WGSchemaDocumentDefinition
public java.util.List<WGMetaFieldDefinition> getContentMetaDefinitions()
public void setContentMetaDefinitions(java.util.List<WGMetaFieldDefinition> contentMetaDefinitions)
public void addContentMetaDefinition(WGMetaFieldDefinition metaDef)