Class SchemaModelGeneratorProperties


  • public class SchemaModelGeneratorProperties
    extends Object
    INTERNAL:

    Purpose:Encapsulates a Map of Namespace URIs to Properties.

    Responsibilities:

    • Provide an API to set key/value pairs on a per namespace URI bases
    • Lazily initialize a new Properties object for each namespace
    • Provide an API to retrieve the entire map of namespace URI to Properties
    • Provide an API to retrieve the property value for a given namespace URI and key

    This class is used to hold onto a Map of Properties objects on a per namespace basis. It is intended to be used in conjunction with the SchemaModelGenerator class, to hand in Properties to be applied to the Schema that is generated for a given namespace.

    See Also:
    Schema, SchemaModelGenerator, Properties
    • Constructor Detail

      • SchemaModelGeneratorProperties

        public SchemaModelGeneratorProperties()
    • Method Detail

      • getPropertiesMap

        public Map<String,​Properties> getPropertiesMap()
        Lazily initialize the URI->Properties map
        Returns:
      • addProperty

        public void addProperty​(String uri,
                                String key,
                                Object value)
        Adds the key/value pair to the Properties object associated with the given namespace URI. If no entry exists for the given URI, a Properties object will be created.
        Parameters:
        uri -
        key -
        value -
      • getProperty

        public Object getProperty​(String uri,
                                  String key)
        Return the property value for a given namespace/key pair.
        Parameters:
        uri -
        key -
        Returns:
      • getProperties

        public Properties getProperties​(String uri)
        Return the Properties object for the given namespace uri. If none exists a new Properties is created and returned.
        Returns: