Class SchemaModelGeneratorProperties


  • public class SchemaModelGeneratorProperties
    extends java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addProperty​(java.lang.String uri, java.lang.String key, java.lang.Object value)
      Adds the key/value pair to the Properties object associated with the given namespace URI.
      java.util.Properties getProperties​(java.lang.String uri)
      Return the Properties object for the given namespace uri.
      java.util.Map<java.lang.String,​java.util.Properties> getPropertiesMap()
      Lazily initialize the URI->Properties map
      java.lang.Object getProperty​(java.lang.String uri, java.lang.String key)
      Return the property value for a given namespace/key pair.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • propMap

        protected java.util.Map<java.lang.String,​java.util.Properties> propMap
      • ATTRIBUTE_FORM_QUALIFIED_KEY

        public static final java.lang.String ATTRIBUTE_FORM_QUALIFIED_KEY
        See Also:
        Constant Field Values
      • ELEMENT_FORM_QUALIFIED_KEY

        public static final java.lang.String ELEMENT_FORM_QUALIFIED_KEY
        See Also:
        Constant Field Values
    • Constructor Detail

      • SchemaModelGeneratorProperties

        public SchemaModelGeneratorProperties()
    • Method Detail

      • getPropertiesMap

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

        public void addProperty​(java.lang.String uri,
                                java.lang.String key,
                                java.lang.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 java.lang.Object getProperty​(java.lang.String uri,
                                            java.lang.String key)
        Return the property value for a given namespace/key pair.
        Parameters:
        uri -
        key -
        Returns:
      • getProperties

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