org.ocltf.mapping
Class Mapping

java.lang.Object
  extended byorg.ocltf.mapping.Mapping

public class Mapping
extends java.lang.Object

A single object instance which belongs to Mappings.

See Also:
Mappings

Constructor Summary
Mapping()
           
 
Method Summary
 void addFrom(java.lang.String from)
          Adds the from type to the mapping.
 java.util.Collection getFroms()
          Return the Collection of froms.
 java.lang.String getTo()
          Returns the to type for this mapping.
 void setTo(java.lang.String to)
          Sets the type for this mapping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mapping

public Mapping()
Method Detail

addFrom

public void addFrom(java.lang.String from)
Adds the from type to the mapping.

Parameters:
from - the type that we are mapping from.

getFroms

public java.util.Collection getFroms()
Return the Collection of froms.

Returns:
Collection

getTo

public java.lang.String getTo()
Returns the to type for this mapping.

Returns:
String the to type

setTo

public void setTo(java.lang.String to)
Sets the type for this mapping.

Parameters:
to -


Copyright © 2003-2004 Chad Brandon. All Rights Reserved.