Class SchemaConfigImpl

    • Constructor Detail

      • SchemaConfigImpl

        public SchemaConfigImpl()
      • SchemaConfigImpl

        public SchemaConfigImpl​(java.lang.Object config)
    • Method Detail

      • getItemNames

        public java.util.List<java.lang.String> getItemNames()
        Description copied from interface: SchemaConfig
        Gets a List of all of the names.
        Specified by:
        getItemNames in interface SchemaConfig
        Returns:
        The List of item names
      • getItem

        public SchemaItemConfig getItem​(java.lang.Object name)
        Returns a named SchemItemConfig
        Specified by:
        getItem in interface SchemaConfig
        Parameters:
        name - The name of the schema item
        Returns:
        The item value
      • removeItem

        public void removeItem​(java.lang.Object name)
        Removes an item attribute from the schema
        Specified by:
        removeItem in interface SchemaConfig
        Parameters:
        name - The name of the item to remove
      • setItem

        public void setItem​(java.lang.Object name,
                            SchemaItemConfig item)
        Sets the item attribute of the SchemaConfig object
        Specified by:
        setItem in interface SchemaConfig
        Parameters:
        name - The name of the new item
        item - The SchemaConfig object to put in
      • newItem

        public SchemaItemConfig newItem​(java.lang.Object name)
                                 throws java.lang.Exception
        Constructs a new SchemaItemConfig object. The object contains an item attribute with name
        Specified by:
        newItem in interface SchemaConfig
        Parameters:
        name - The name of the item attribute
        Returns:
        New or existing SchemaItemConfig object
        Throws:
        java.lang.Exception - if the construction does not succeed
      • flatten

        public boolean flatten​(java.util.List<java.lang.String> excludedNS)
                        throws java.lang.Exception
        Description copied from class: BaseConfigurationImpl
        This method combines all values from this object and its inherited objects into one single config object. After flattening, the object is a complete object with no inherited values except those from the excludedNS list.
        Specified by:
        flatten in interface BaseConfiguration
        Overrides:
        flatten in class BaseConfigurationImpl
        Parameters:
        excludedNS - List of namespaces to exclude from flattening
        Returns:
        true if object attempted flattening, FALSE is this object inherits from an excluded namespace or has no inheritance
        Throws:
        java.lang.Exception
      • attachSchema

        public void attachSchema​(SchemaConfig schema)
        Attach a Schema. The attributes of the attached schema will be listed as part of the current object. Attached schemas are perceived as read-only - attributes will not be removed nor added to them. The attachment relationship is runtime only - it will not be persisted.
        Parameters:
        schema - Schema to attach
        Since:
        7.0
      • detachSchema

        public void detachSchema​(SchemaConfig schema)
        Detach a Schema. If the specified Schema is not attached to the current one, the method will have no effect.
        Parameters:
        schema - Schema to detach
        Since:
        7.0