public class SchemaDef extends SchemaObject
internalId, internalName, log, TIMESTAMP_FORMAT
SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
Modifier and Type | Method and Description |
---|---|
SchemaDef |
addEntity(EntityDef entity) |
boolean |
containsEntity(String name) |
SchemaDef |
fromJson(InputStream inputStream) |
SchemaDef |
fromJson(String jsonString) |
SchemaDef |
fromRecord(Record source)
Loads this instance's state from a record and returns
this (for fluid API call chaining). |
SchemaDef |
fromXml(InputStream inputStream) |
SchemaDef |
fromXml(String xml) |
SchemaDef |
fromXmlElement(Element schemaElement) |
Attributes |
getAttributes()
User-defined key-value pairs to attached arbitrary metadata to this schema.
|
String |
getDescription()
The human-readable summary of this schema.
|
List<EntityDef> |
getEntities() |
List<EntityDef> |
getEntities(boolean create) |
EntityDef |
getEntity(String name) |
String |
getName()
The human-readable text identifier for this schema.
|
Tags |
getTags()
The set of labels used to organize, filter, and classify this schema.
|
int |
indexOfEntity(String name) |
SchemaDef |
setAttributes(Attributes attributes) |
SchemaDef |
setDescription(String description) |
SchemaDef |
setEntities(List<EntityDef> entities) |
SchemaDef |
setName(String name) |
SchemaDef |
setTags(Tags tags) |
Record |
toRecord() |
Element |
toXmlElement(Document document) |
addExceptionProperties, assertValid, assertValid, clone, exception, exception, exception, getInternalId, getInternalName, resetInternalId
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fromArrayValue, fromArrayValue, fromArrayValue, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecord
newInstanceFromJson
getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXml
public SchemaDef()
public SchemaDef(String name)
public String getName()
public String getDescription()
public int indexOfEntity(String name)
public boolean containsEntity(String name)
public Attributes getAttributes()
public SchemaDef setAttributes(Attributes attributes)
public Tags getTags()
public Record toRecord()
toRecord
in interface RecordSerializable
toRecord
in class Bean
public SchemaDef fromRecord(Record source)
RecordSerializable
this
(for fluid API call chaining).
For fluid API call chaining, the overridden method should change the declared return type to its class.fromRecord
in interface RecordSerializable
fromRecord
in class Bean
public SchemaDef fromJson(InputStream inputStream)
public SchemaDef fromXml(InputStream inputStream)