Module org.eclipse.persistence.core
Class SchemaModelGeneratorProperties
java.lang.Object
org.eclipse.persistence.internal.oxm.schema.SchemaModelGeneratorProperties
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:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
protected Map
<String, Properties> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(String uri, String key, Object value) Adds the key/value pair to the Properties object associated with the given namespace URI.getProperties
(String uri) Return the Properties object for the given namespace uri.Lazily initialize the URI->Properties mapgetProperty
(String uri, String key) Return the property value for a given namespace/key pair.
-
Field Details
-
propMap
-
ATTRIBUTE_FORM_QUALIFIED_KEY
- See Also:
-
ELEMENT_FORM_QUALIFIED_KEY
- See Also:
-
-
Constructor Details
-
SchemaModelGeneratorProperties
public SchemaModelGeneratorProperties()
-
-
Method Details
-
getPropertiesMap
Lazily initialize the URI->Properties map -
addProperty
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. -
getProperty
Return the property value for a given namespace/key pair. -
getProperties
Return the Properties object for the given namespace uri. If none exists a new Properties is created and returned.
-