public class SchemaDef extends SchemaPart implements Cloneable, SchemaProblemsSupplier
internalId, internalName, log, TIMESTAMP_FORMAT
SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
getSchemaName, getSchemaPartContainerName, getSchemaPartContainerType
addExceptionProperties, assertValid, assertValid, exception, exception, exception, getInternalId, getInternalName, resetInternalId
finalize, getClass, notify, notifyAll, wait, wait, wait
getSchemaProblems, getSchemaProblems
fromArrayValue, fromArrayValue, fromArrayValue, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toRecord
newInstanceFromJson
forEachGrandChildElement, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXml
addExceptionProperties, contributeExceptionProperties, contributeExceptionProperties
public SchemaDef()
public SchemaDef(String name)
public void getSchemaProblems(List<SchemaProblem> problems, boolean includeChildren)
getSchemaProblems
in interface SchemaProblemsSupplier
public SchemaDef clone()
clone
in class FoundationObject
public void generateJavaCode(JavaCodeBuilder code)
generateJavaCode
in interface JavaCodeGenerator
public SchemaDef getSchemaDef()
getSchemaDef
in class SchemaPart
public SchemaPart getSchemaPartContainer()
getSchemaPartContainer
in class SchemaPart
public SchemaPartType getSchemaPartType()
getSchemaPartType
in class SchemaPart
public String getSchemaPartName()
getSchemaPartName
in class SchemaPart
public String getName()
public String getDescription()
public int getEntityCount()
public int indexOfEntity(String name)
EntityDef
with the specified name or -1 if it is not found.public boolean containsEntity(String name)
EntityDef
with the specified name
.public EntityDef getEntity(String name)
EntityDef
that matches the specified name.public int indexOfEntityRelationship(String name)
EntityRelationshipDef
with the specified name or -1 if it is not found.public boolean containsEntityRelationship(String name)
EntityRelationshipDef
with the specified name
.public int getEntityRelationshipCount()
public List<String> getEntityRelationshipNames()
public List<EntityRelationshipDef> getEntityRelationships(boolean create)
public EntityRelationshipDef getEntityRelationship(String name)
EntityRelationshipDef
that matches the specified name.public List<EntityRelationshipDef> getEntityRelationships()
public EntityRelationshipDef getEntityRelationshipByForeignKeyName(String foreignKeyName)
public List<EntityRelationshipDef> getEntityRelationshipsByForeignKeyName(String foreignKeyName)
public SchemaDef setEntityRelationships(List<EntityRelationshipDef> entityRelationships)
public SchemaDef addEntityRelationship(EntityRelationshipDef entityRelationship)
public List<EntityRelationshipDef> getPrimaryEntityRelationships(EntityDef primaryEntity)
public List<EntityRelationshipDef> getForeignEntityRelationships(EntityDef foreignEntity)
public Attributes getAttributes()
public SchemaDef setAttributes(Attributes attributes)
public Tags getTags()
public String toJson()
toJson
in interface JsonSerializable
toJson
in interface RecordSerializable
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(String jsonString)
fromJson
in interface JsonSerializable
fromJson
in interface RecordSerializable
public SchemaDef fromJson(InputStream inputStream)
fromJson
in interface JsonSerializable
fromJson
in interface RecordSerializable
public SchemaDef fromXml(InputStream inputStream)
fromXml
in interface XmlSerializable
public SchemaDef fromXml(String xml)
fromXml
in interface XmlSerializable
public Element toXmlElement(Document document)
toXmlElement
in interface XmlSerializable
public SchemaDef fromXmlElement(Element schemaElement)
fromXmlElement
in interface XmlSerializable
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.