public abstract class WGSchemaDocumentDefinition
extends java.lang.Object
Constructor and Description |
---|
WGSchemaDocumentDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
addMetadata(WGMetaFieldDefinition metadata)
Adds a metadata definition
|
WGDocumentKey |
getDocumentKey()
Returns the document key that the document created on behalf of this definition will have
|
abstract int |
getDocumentType()
Returns the type number of the document type of this definition
|
java.util.List<WGMetaFieldDefinition> |
getMetadata()
Returns the metadata field definitions
|
java.util.Map<java.lang.String,WGMetaFieldDefinition> |
getMetadataCache()
Returns a map of the metadata field definitions of this schema, mapped by their name
|
java.lang.String |
getName()
Returns the name of the document to create from this schema
|
void |
init() |
boolean |
isAutoCreate()
Returns if a schema document is to be automatically created based on this definition
|
void |
setAutoCreate(boolean autoCreate)
Sets if a schema document is to be automatically created based on this definition
|
void |
setMetadata(java.util.List<WGMetaFieldDefinition> metadata)
Sets the metadata field definitions
|
void |
setName(java.lang.String name)
Sets the name of the document to create from this schemaSets the name of the schema document
|
public abstract int getDocumentType()
public WGDocumentKey getDocumentKey()
public java.util.Map<java.lang.String,WGMetaFieldDefinition> getMetadataCache()
public void addMetadata(WGMetaFieldDefinition metadata)
public java.util.List<WGMetaFieldDefinition> getMetadata()
public void setMetadata(java.util.List<WGMetaFieldDefinition> metadata)
public java.lang.String getName()
public void setName(java.lang.String name)
public boolean isAutoCreate()
public void setAutoCreate(boolean autoCreate)
public void init()