All Implemented Interfaces:
DataExceptionContributor, JsonSerializable, RecordSerializable, XmlSerializable, JavaCodeGenerator, Serializable
Direct Known Subclasses:
EntityDef, EntityRelationshipDef, FieldDef, IndexDef, IndexFieldDef, SchemaDef

public abstract class SchemaPart extends SchemaObject
Base class for the elements of a schema definition -- the SchemaDef itself and its entities, relationships, fields, indexes and index fields.
See Also:
  • Constructor Details

    • SchemaPart

      public SchemaPart()
  • Method Details

    • getSchemaDef

      public abstract SchemaDef getSchemaDef()
      Returns the schema containing this part (itself for a SchemaDef) or null if the part is not in a schema.
    • getSchemaPartContainer

      public abstract SchemaPart getSchemaPartContainer()
      Returns the schema part containing this one or null if there is none.
    • getSchemaPartType

      public abstract SchemaPartType getSchemaPartType()
      Returns the kind of part this is, such as SchemaPartType.ENTITY.
    • getSchemaPartName

      public abstract String getSchemaPartName()
      Returns the name identifying this part, such as an entity's name or an index field's field name.
    • getSchemaName

      public String getSchemaName()
      Returns the name of the schema containing this part or null if it is not in a schema.
    • getSchemaPartContainerName

      public String getSchemaPartContainerName()
      Returns the name of the containing part or null if there is none.
    • getSchemaPartContainerType

      public SchemaPartType getSchemaPartContainerType()
      Returns the type of the containing part or null if there is none.