Class ReferencedXmlMappingRegistry
- java.lang.Object
-
- net.officefloor.plugin.xml.unmarshall.tree.ReferencedXmlMappingRegistry
-
public class ReferencedXmlMappingRegistry extends java.lang.Object
Registry ofReferenceXmlMapping
instances.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.util.List<net.officefloor.plugin.xml.unmarshall.tree.ReferenceXmlMapping>>
registry
Registry ofReferenceXmlMapping
instances.
-
Constructor Summary
Constructors Constructor Description ReferencedXmlMappingRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementXmlMapping
getElementXmlMapping(java.lang.String id, java.lang.Class<?> targetObjectType)
Obtains theElementXmlMapping
instance identified by its id for a specific target object.XmlMappingMetaData
getXmlMappingMetaData(java.lang.String id)
Obtains the meta-data of theElementXmlMapping
by its id.protected void
registerReferenceXmlMapping(java.lang.String id, java.lang.Class<?> targetObjectType, ElementXmlMapping mapping, XmlMappingMetaData mappingMetaData)
Registers a referenceXmlMapping
.
-
-
-
Method Detail
-
getElementXmlMapping
public ElementXmlMapping getElementXmlMapping(java.lang.String id, java.lang.Class<?> targetObjectType)
Obtains theElementXmlMapping
instance identified by its id for a specific target object.- Parameters:
id
- Id of theXmlMapping
.targetObjectType
- Class of the target object.- Returns:
ElementXmlMapping
by id for the target object. If no match is found, then will returnnull
.
-
getXmlMappingMetaData
public XmlMappingMetaData getXmlMappingMetaData(java.lang.String id)
Obtains the meta-data of theElementXmlMapping
by its id.- Parameters:
id
- Id of theElementXmlMapping
.- Returns:
XmlMappingMetaData
for the id.
-
registerReferenceXmlMapping
protected void registerReferenceXmlMapping(java.lang.String id, java.lang.Class<?> targetObjectType, ElementXmlMapping mapping, XmlMappingMetaData mappingMetaData)
Registers a referenceXmlMapping
.- Parameters:
id
- Id of theXmlMapping
.targetObjectType
- Class of the target object for theXmlMapping
.mapping
- TheElementXmlMapping
itself.mappingMetaData
- Meta-data of theXmlMapping
.
-
-