|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.mapping.AbstractMapping
org.compass.core.mapping.AbstractMultipleMapping
org.compass.core.mapping.AbstractResourceMapping
org.compass.core.mapping.xsem.XmlObjectMapping
public class XmlObjectMapping
| Field Summary |
|---|
| Fields inherited from class org.compass.core.mapping.AbstractMultipleMapping |
|---|
mappings, mappingsByNameMap |
| Constructor Summary | |
|---|---|
XmlObjectMapping()
|
|
| Method Summary | |
|---|---|
int |
addMapping(Mapping mapping)
No duplicate names are allowed when added an id (applies the property names) |
Mapping |
copy()
Copies over the mapping definition into a newly instanciated Mapping object. |
protected void |
doPostProcess()
|
ResourcePropertyMapping |
getResourcePropertyMappingByDotPath(String path)
Returns the ResourcePropertyMapping that match the given path
"dot" path (a.bValue.value), or null if none exists. |
ResourcePropertyMapping[] |
getResourcePropertyMappings()
Returns all the resource property mappings that are assoicated with the resource mapping. |
XmlContentMapping |
getXmlContentMapping()
Returns the xml content mapping (might be null). |
String |
getXPath()
|
XmlXPathExpression |
getXPathExpression()
|
boolean |
isIncludePropertiesWithNoMappingsInAll()
Returns true if when adding the different Resource properties,
properties with no mappings will be added to the "all" property. |
void |
setXPath(String xpath)
|
void |
setXPathExpression(XmlXPathExpression xpathExpression)
|
AliasMapping |
shallowCopy()
Performs a shalow copy of this mapping, not including any internal mappings belonging to MultipleMapping. |
| Methods inherited from class org.compass.core.mapping.AbstractMultipleMapping |
|---|
addMappings, clearMappings, copy, getMapping, getMapping, mappingsIt, mappingsSize, removeExistingByName, replaceMappings, shallowCopy |
| Methods inherited from class org.compass.core.mapping.AbstractMapping |
|---|
controlsObjectNullability, copy, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.compass.core.mapping.MultipleMapping |
|---|
getMapping, getMapping, mappingsIt |
| Methods inherited from interface org.compass.core.mapping.Mapping |
|---|
controlsObjectNullability, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath |
| Constructor Detail |
|---|
public XmlObjectMapping()
| Method Detail |
|---|
public Mapping copy()
Mapping
copy in interface Mappingpublic AliasMapping shallowCopy()
AliasMappingMultipleMapping.
shallowCopy in interface AliasMappingpublic boolean isIncludePropertiesWithNoMappingsInAll()
ResourceMappingtrue if when adding the different Resource properties,
properties with no mappings will be added to the "all" property. A resoruce can have property with no
mappings if it was added programtically to the resource.
isIncludePropertiesWithNoMappingsInAll in interface ResourceMappingpublic int addMapping(Mapping mapping)
AbstractResourceMapping
addMapping in interface MultipleMappingaddMapping in class AbstractResourceMappingmapping - The mapping to add
protected void doPostProcess()
throws MappingException
doPostProcess in class AbstractResourceMappingMappingExceptionpublic ResourcePropertyMapping getResourcePropertyMappingByDotPath(String path)
ResourceMappingResourcePropertyMapping that match the given path
"dot" path (a.bValue.value), or null if none exists.
getResourcePropertyMappingByDotPath in interface ResourceMappingpublic ResourcePropertyMapping[] getResourcePropertyMappings()
ResourceMappingResourcePropertyMapping, and using this
method you can be assured that ALL the ResourcePropertyMappings will be returned
(even deep ones).
getResourcePropertyMappings in interface ResourceMappingpublic String getXPath()
getXPath in interface XPathEnabledMappingpublic void setXPath(String xpath)
public XmlXPathExpression getXPathExpression()
getXPathExpression in interface XPathEnabledMappingpublic void setXPathExpression(XmlXPathExpression xpathExpression)
setXPathExpression in interface XPathEnabledMappingpublic XmlContentMapping getXmlContentMapping()
null).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||