org.onemind.commons.relabean.serialize
Class NameBinding

java.lang.Object
  extended byorg.onemind.commons.relabean.serialize.NameBinding

public class NameBinding
extends java.lang.Object

Describes the binding of a class and a name

Version:
$Id: NameBinding.java,v 1.2 2004/08/26 16:29:00 thlee Exp $ $Name: $
Author:
TiongHiang Lee (thlee@onemindsoft.org)

Constructor Summary
NameBinding()
          {@inheritDoc}
 
Method Summary
 void bind(java.lang.Class c, java.lang.String name)
          Add a name mapping of the bean
 java.util.Map getBindings()
          Get all the name mappings
 java.lang.String getName(java.lang.Class c)
          Get the name of the class in the model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameBinding

public NameBinding()
{@inheritDoc}

Method Detail

getName

public java.lang.String getName(java.lang.Class c)
Get the name of the class in the model

Parameters:
c - the class
Returns:
the name of the class in the model

bind

public void bind(java.lang.Class c,
                 java.lang.String name)
Add a name mapping of the bean

Parameters:
c - the class
name - the name

getBindings

public java.util.Map getBindings()
Get all the name mappings

Returns:
the name mappings


Copyright © 2004-2005 . All Rights Reserved.