|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.mapping.ActiveUnary<T>
T
- The type of the element contained by the active 0-1 relation.public class ActiveUnary<T>
An active unary relation is an object that may contain a value (cardinalities 0..1). When the value is modified,
the mapping registry is notified and the corresponding mappings executed.
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
Field Summary | |
---|---|
protected T |
value
The value of the singleton. |
Constructor Summary | |
---|---|
ActiveUnary()
Creates an empty singleton. |
|
ActiveUnary(T value)
Creates a singleton with a given value. |
Method Summary | |
---|---|
T |
getValue()
|
void |
setValue(T value)
Sets a new value to the singleton. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected T value
Constructor Detail |
---|
public ActiveUnary()
public ActiveUnary(T value)
value
- The value of the singleton.Method Detail |
---|
public T getValue()
getValue
in interface IUnary<T>
public void setValue(T value)
IUnary
setValue
in interface IUnary<T>
value
- The new value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |