public class SchemaDef extends SchemaPart implements Cloneable, SchemaProblemsSupplier
internalId, internalName, log, TIMESTAMP_FORMATSERIALIZED_CLASS_NAME, TYPEXML_SERIALIZED_CLASS_NAMEgetSchemaName, getSchemaPartContainerName, getSchemaPartContainerTypeaddExceptionProperties, assertValid, assertValid, exception, exception, exception, getInternalId, getInternalName, resetInternalIdfinalize, getClass, notify, notifyAll, wait, wait, waitgetSchemaProblems, getSchemaProblemsfromArrayValue, fromArrayValue, fromArrayValue, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toRecordnewInstanceFromJsonforEachGrandChildElement, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXmladdExceptionProperties, contributeExceptionProperties, contributeExceptionPropertiespublic SchemaDef()
public SchemaDef(String name)
public void getSchemaProblems(List<SchemaProblem> problems, boolean includeChildren)
getSchemaProblems in interface SchemaProblemsSupplierpublic SchemaDef clone()
clone in class FoundationObjectpublic void generateJavaCode(JavaCodeBuilder code)
generateJavaCode in interface JavaCodeGeneratorpublic SchemaDef getSchemaDef()
getSchemaDef in class SchemaPartpublic SchemaPart getSchemaPartContainer()
getSchemaPartContainer in class SchemaPartpublic SchemaPartType getSchemaPartType()
getSchemaPartType in class SchemaPartpublic String getSchemaPartName()
getSchemaPartName in class SchemaPartpublic 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 JsonSerializabletoJson in interface RecordSerializablepublic Record toRecord()
toRecord in interface RecordSerializabletoRecord in class Beanpublic SchemaDef fromRecord(Record source)
RecordSerializablethis (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 RecordSerializablefromRecord in class Beanpublic SchemaDef fromJson(String jsonString)
fromJson in interface JsonSerializablefromJson in interface RecordSerializablepublic SchemaDef fromJson(InputStream inputStream)
fromJson in interface JsonSerializablefromJson in interface RecordSerializablepublic SchemaDef fromXml(InputStream inputStream)
fromXml in interface XmlSerializablepublic SchemaDef fromXml(String xml)
fromXml in interface XmlSerializablepublic Element toXmlElement(Document document)
toXmlElement in interface XmlSerializablepublic SchemaDef fromXmlElement(Element schemaElement)
fromXmlElement in interface XmlSerializableCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.