Class SchemaImpl

    • Constructor Detail

      • SchemaImpl

        public SchemaImpl​(String uri)
        Schema constructed w/ respect to provided URI
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface Map<Name,​AttributeType>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Map<Name,​AttributeType>
      • containsKey

        public boolean containsKey​(Object key)
        Specified by:
        containsKey in interface Map<Name,​AttributeType>
      • containsValue

        public boolean containsValue​(Object value)
        Specified by:
        containsValue in interface Map<Name,​AttributeType>
      • clear

        public void clear()
        Specified by:
        clear in interface Map<Name,​AttributeType>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface Map<Name,​AttributeType>
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface Map<Name,​AttributeType>
        Overrides:
        equals in class Object
      • toString

        public String toString()
        Overrides:
        toString in class Object
      • getURI

        public String getURI()
        Description copied from interface: Schema
        The uri of the schema.

        This method is a convenience for keySet().getURI().

        Specified by:
        getURI in interface Schema
        Returns:
        The uri of the schema.
      • add

        public void add​(AttributeType type)
        Description copied from interface: Schema
        Adds a type to the schema.

        This method is a convenience for put(type.getName(),type).

        Specified by:
        add in interface Schema
        Parameters:
        type - The type to add.
      • profile

        public Schema profile​(Set<Name> profile)
        Description copied from interface: Schema
        Profiles the schema, creating a new schema in the process.

        A profile of a schema is a subset of the schema, and it also a schema itself.

        Used to select a subset of types for a specific application. Profiles often are used to express limitiations of a source of data.

        Specified by:
        profile in interface Schema
        Parameters:
        profile - The set of names which corresond to entries that will make up the profile.
        Returns:
        The profile of the original schema.