Class Schema

    • Constructor Detail

      • Schema

        public Schema()
        Creates a new empty schema.
      • Schema

        public Schema​(java.lang.String aName)
        Creates a new schema with the given name.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the entity.
      • setName

        public void setName​(java.lang.String aName)
        Sets the name of the entity.
      • getSite

        public WebSite getSite()
        Returns the WebSite the schema works for.
      • setSite

        public void setSite​(WebSite aSite)
        Sets the WebSite the schema works for.
      • getEntityCount

        public int getEntityCount()
        Returns the number of entities in this schema.
      • getEntity

        public Entity getEntity​(int anIndex)
        Returns the specific entity at the given index.
      • getEntities

        public java.util.List<Entity> getEntities()
        Returns the list of entities.
      • setEntities

        public void setEntities​(java.util.List<Entity> theEntities)
        Sets a list of entities.
      • addEntity

        public void addEntity​(Entity anEntity)
        Adds an entity to the list.
      • addEntity

        public void addEntity​(Entity anEntity,
                              int anIndex)
        Adds an entity to the list.
      • removeEntity

        public Entity removeEntity​(int anIndex)
        Removes an entity at given index.
      • removeEntity

        public int removeEntity​(Entity anEntity)
        Removes an entity from the list.
      • getEntity

        public Entity getEntity​(java.lang.String aName)
        Returns the schema entity with the given name.
      • getRootEntity

        public Entity getRootEntity()
        Returns the root entity.
      • createRootEntity

        protected Entity createRootEntity()
        Creates a root entity.
      • equals

        public boolean equals​(java.lang.Object anObj)
        Standard equals implementation.
        Overrides:
        equals in class java.lang.Object
      • getJSONKeys

        public java.util.List<java.lang.String> getJSONKeys()
        Returns keys for JSON archival.
        Specified by:
        getJSONKeys in interface RMJSONArchiver.GetKeys
      • toString

        public java.lang.String toString()
        Returns schema name.
        Overrides:
        toString in class RMObject