saffron.rel
Class TypeFactoryImpl.FieldImpl

java.lang.Object
  |
  +--saffron.rel.TypeFactoryImpl.FieldImpl
All Implemented Interfaces:
Field
Enclosing class:
TypeFactoryImpl

protected static class TypeFactoryImpl.FieldImpl
extends Object
implements Field

Simple implementation of Field


Field Summary
private  String name
           
private  Type type
           
 
Constructor Summary
TypeFactoryImpl.FieldImpl(String name, Type type)
           
 
Method Summary
 Object get(Object o)
          Retrieves the value of this field in an instance of this type.
 String getName()
          Returns the name of this field.
 Type getType()
          Returns the type of this field.
 void set(Object o, Object value)
          Sets the value of this field in an instance of the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private final String name

type

private final Type type
Constructor Detail

TypeFactoryImpl.FieldImpl

public TypeFactoryImpl.FieldImpl(String name,
                                 Type type)
Pre-condition:
name != null, type != null
Method Detail

getType

public Type getType()
Description copied from interface: Field
Returns the type of this field.

Specified by:
getType in interface Field

getName

public String getName()
Description copied from interface: Field
Returns the name of this field. The name is unique within the type.

Specified by:
getName in interface Field

set

public void set(Object o,
                Object value)
Description copied from interface: Field
Sets the value of this field in an instance of the type.

Specified by:
set in interface Field

get

public Object get(Object o)
Description copied from interface: Field
Retrieves the value of this field in an instance of this type.

Specified by:
get in interface Field

SourceForge.net_Logo