org.objectweb.easybeans.xmlconfig.mapping
Class ClassMapping

java.lang.Object
  extended by org.objectweb.easybeans.xmlconfig.mapping.AbsMapping
      extended by org.objectweb.easybeans.xmlconfig.mapping.ClassMapping

public class ClassMapping
extends AbsMapping

Defines a mapping for a given class.

Author:
Florent Benoit

Field Summary
private  java.util.Map<java.lang.String,AttributeMapping> attributesMapping
          Association between a name(or alias) and an attribute mapping.
 
Constructor Summary
ClassMapping()
          Build a default class mapping.
 
Method Summary
 void addAttributeMapping(AttributeMapping attributeMapping)
          Add a given attribute mapping object.
 AttributeMapping getAttributeMapping(java.lang.String attributeName)
          Gets the attribute mapping for the given attribute name.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class org.objectweb.easybeans.xmlconfig.mapping.AbsMapping
getAlias, getName, setAlias, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

attributesMapping

private java.util.Map<java.lang.String,AttributeMapping> attributesMapping
Association between a name(or alias) and an attribute mapping.

Constructor Detail

ClassMapping

public ClassMapping()
Build a default class mapping.

Method Detail

addAttributeMapping

public void addAttributeMapping(AttributeMapping attributeMapping)
Add a given attribute mapping object.

Parameters:
attributeMapping - the given attribute.

getAttributeMapping

public AttributeMapping getAttributeMapping(java.lang.String attributeName)
Gets the attribute mapping for the given attribute name.

Parameters:
attributeName - the given attribute name.
Returns:
the attribute mapping or null if not found.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class AbsMapping
Returns:
string representation