Top Description Fields Constructors Methods
org.eclipse.persistence.internal.oxm.schema

public Class SchemaModelGeneratorProperties

extends Object
Class Inheritance
Imports
java.util.HashMap, .Map, .Properties, org.eclipse.persistence.internal.oxm.schema.model.Schema

INTERNAL:

Purpose:Encapsulates a Map of Namespace URIs to Properties.

Responsibilities:

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

Modifier and TypeField and Description
public static final String
public static final String
protected Map<String, Properties>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addProperty(String uri, String key, Object value)

Adds the key/value pair to the Properties object associated with the given namespace URI.

public Properties
getProperties(String uri)

Return the Properties object for the given namespace uri.

public Map<String, Properties>
getPropertiesMap()

Lazily initialize the URI->Properties map

public Object
getProperty(String uri, String key)

Return the property value for a given namespace/key pair.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ATTRIBUTE_FORM_QUALIFIED_KEYback to summary
public static final String ATTRIBUTE_FORM_QUALIFIED_KEY
ELEMENT_FORM_QUALIFIED_KEYback to summary
public static final String ELEMENT_FORM_QUALIFIED_KEY
propMapback to summary
protected Map<String, Properties> propMap

Constructor Detail

SchemaModelGeneratorPropertiesback to summary
public SchemaModelGeneratorProperties()

Method Detail

addPropertyback to summary
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.

getPropertiesback to summary
public Properties getProperties(String uri)

Return the Properties object for the given namespace uri. If none exists a new Properties is created and returned.

getPropertiesMapback to summary
public Map<String, Properties> getPropertiesMap()

Lazily initialize the URI->Properties map

getPropertyback to summary
public Object getProperty(String uri, String key)

Return the property value for a given namespace/key pair.