org.ow2.util.xmlconfig.mapping
Class AbsMapping

java.lang.Object
  extended by org.ow2.util.xmlconfig.mapping.AbsMapping
Direct Known Subclasses:
AttributeMapping, ClassMapping

public abstract class AbsMapping
extends java.lang.Object

Common methods used by mapping class.

Author:
Florent Benoit

Constructor Summary
AbsMapping()
          Default constructor.
 
Method Summary
 java.util.List<java.lang.String> getAliases()
          Gets aliases used.
 java.lang.String getName()
          Gets name of this mapping element.
 void setAliases(java.util.List<java.lang.String> aliases)
          Sets the aliases for this mapping.
 void setName(java.lang.String name)
          Sets the name for this mapping.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbsMapping

public AbsMapping()
Default constructor.

Method Detail

getName

public java.lang.String getName()
Gets name of this mapping element.

Returns:
the name.

setName

public void setName(java.lang.String name)
Sets the name for this mapping.

Parameters:
name - the given name.

setAliases

public void setAliases(java.util.List<java.lang.String> aliases)
Sets the aliases for this mapping.

Parameters:
aliases - the given aliases.

getAliases

public java.util.List<java.lang.String> getAliases()
Gets aliases used.

Returns:
the aliases of this mapping class.

toString

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

Overrides:
toString in class java.lang.Object
Returns:
string representation


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.