org.malai.mapping
Interface IUnary<T>

Type Parameters:
T - The type of the element contained by the 0-1 relation.
All Known Implementing Classes:
ActiveUnary

public interface IUnary<T>

This interface defines methods for an unary relation that may contain a value of type T (cardinality 0..1).

This file is part of Malai.
Copyright (c) 2009-2012 Arnaud BLOUIN

Malai is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Malai is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

05/16/2010

Since:
0.2
Version:
0.2
Author:
Arnaud BLOUIN

Method Summary
 T getValue()
           
 void setValue(T value)
          Sets a new value to the singleton.
 

Method Detail

getValue

T getValue()
Returns:
The value of the singleton.
Since:
0.2

setValue

void setValue(T value)
Sets a new value to the singleton.

Parameters:
value - The new value.
Since:
0.2