Class SchemaModelGeneratorProperties
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.schema.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
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTRIBUTE_FORM_QUALIFIED_KEY
static String
ELEMENT_FORM_QUALIFIED_KEY
protected Map<String,Properties>
propMap
-
Constructor Summary
Constructors Constructor Description SchemaModelGeneratorProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(String uri, String key, Object value)
Adds the key/value pair to the Properties object associated with the given namespace URI.Properties
getProperties(String uri)
Return the Properties object for the given namespace uri.Map<String,Properties>
getPropertiesMap()
Lazily initialize the URI->Properties mapObject
getProperty(String uri, String key)
Return the property value for a given namespace/key pair.
-
-
-
Field Detail
-
propMap
protected Map<String,Properties> propMap
-
ATTRIBUTE_FORM_QUALIFIED_KEY
public static final String ATTRIBUTE_FORM_QUALIFIED_KEY
- See Also:
- Constant Field Values
-
ELEMENT_FORM_QUALIFIED_KEY
public static final String ELEMENT_FORM_QUALIFIED_KEY
- See Also:
- Constant Field Values
-
-
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:
-
-