public class MetafacadeMapping extends Object
MetafacadeMappings
(that is: instances of this class below to an instance of MetafacadeMappings).| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
MetafacadeMapping.Property
Stores and provides access to the mapping element's nested <property/>.
|
(package private) static class |
MetafacadeMapping.PropertyGroup
Represents a group of properties.
|
| Constructor and Description |
|---|
MetafacadeMapping() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMappingProperty(String name,
String value)
Adds a mapping property.
|
(package private) void |
addMappingPropertyGroup(MetafacadeMapping.PropertyGroup propertyGroup)
Adds the
propertyGroup to the existing mapping property groups within this mapping. |
void |
addPropertyReference(String reference)
Adds a mapping property reference.
|
void |
addPropertyReferences(Collection<String> propertyReferences)
Adds all
propertyReferences to the property references contained in this MetafacadeMapping
instance. |
void |
addStereotype(String stereotype)
Adds a
stereotype to the stereotypes. |
(package private) String |
getContext()
Gets the context to which this mapping applies.
|
protected Set<String> |
getMappingClassNames()
Gets the names of the metaobject classes used for this mapping.
|
(package private) MetafacadeMapping.PropertyGroup |
getMappingProperties()
Gets the mapping properties associated this this mapping directly (contained within a
MetafacadeMapping.PropertyGroupinstance). |
(package private) Collection<MetafacadeMapping.PropertyGroup> |
getMappingPropertyGroups()
Returns all mapping property groups for this MetafacadeMapping instance.
|
Class |
getMetafacadeClass()
Gets the metafacadeClass for this mapping.
|
(package private) MetafacadeMappings |
getMetafacadeMappings()
Gets the "parent" MetafacadeMappings instance to which this mapping belongs.
|
Collection<String> |
getPropertyReferences()
Returns all mapping references for this MetafacadeMapping instance.
|
(package private) List<String> |
getStereotypes()
Gets the stereotypes which apply to this mapping.
|
(package private) boolean |
hasContext()
Indicates whether or not this mapping has a context.
|
(package private) boolean |
hasMappingProperties()
Indicates whether or not this mapping contains any mapping properties.
|
(package private) boolean |
hasStereotypes()
Indicates whether or not this mapping has any stereotypes defined.
|
boolean |
isContextRoot()
Gets whether or not this mapping represents a
contextRoot, by default a mapping is NOT
a contextRoot. |
(package private) boolean |
isMappingClassNamePresent()
Indicates whether or not the mapping class has been present.
|
(package private) boolean |
match(MetafacadeMapping mapping)
Indicates whether or not the
mapping matches this mapping. |
void |
setContext(String context)
Sets the context to which this mapping applies.
|
void |
setContextRoot(boolean contextRoot)
Sets the name of the
contextRoot for this mapping. |
void |
setMappingClassName(String mappingClassName)
The name of the metaobject class to use for this mapping.
|
void |
setMetafacadeClassName(String metafacadeClassName)
Sets the metafacadeClassName for this mapping.
|
(package private) void |
setMetafacadeMappings(MetafacadeMappings mappings)
Sets the metafacade mappings instance to which this particular mapping belongs.
|
String |
toString() |
public MetafacadeMapping()
public Class getMetafacadeClass()
public void setMetafacadeClassName(String metafacadeClassName)
metafacadeClassName - The name of the metafacade class to set.protected Set<String> getMappingClassNames()
final boolean isMappingClassNamePresent()
public void setMappingClassName(String mappingClassName)
mappingClassName - The mappingClassName to set.public boolean isContextRoot()
Gets whether or not this mapping represents a contextRoot, by default a mapping is NOT
a contextRoot. You'll want to specify this as true when other metafacades need to be created within the
context of this metafacade.
public void setContextRoot(boolean contextRoot)
contextRoot for this mapping.contextRoot - The contextRoot to set.isContextRoot()public void addStereotype(String stereotype)
stereotype to the stereotypes.stereotype - final List<String> getStereotypes()
final boolean hasStereotypes()
public void addPropertyReference(String reference)
reference - the name of the reference.MetafacadeMappings.addPropertyReference(String)public Collection<String> getPropertyReferences()
public void addMappingProperty(String name, String value)
name - the name of the reference.value - the default value of the property reference.final void addMappingPropertyGroup(MetafacadeMapping.PropertyGroup propertyGroup)
propertyGroup to the existing mapping property groups within this mapping.propertyGroup - a property group for this mappingfinal Collection<MetafacadeMapping.PropertyGroup> getMappingPropertyGroups()
final MetafacadeMapping.PropertyGroup getMappingProperties()
MetafacadeMapping.PropertyGroupinstance).final boolean hasMappingProperties()
public void addPropertyReferences(Collection<String> propertyReferences)
propertyReferences to the property references contained in this MetafacadeMapping
instance.propertyReferences - the property references to add.public void setContext(String context)
context - The metafacade context name to set.final String getContext()
final boolean hasContext()
final void setMetafacadeMappings(MetafacadeMappings mappings)
MetafacadeMappings.addMapping(MetafacadeMapping).mappings - the MetacadeMappings instance to which this mapping belongs.final MetafacadeMappings getMetafacadeMappings()
final boolean match(MetafacadeMapping mapping)
mapping matches this mapping. It matches on the following: mapping - public String toString()
toString in class ObjectObject.toString()Copyright © 2003–2014 AndroMDA.org. All rights reserved.