org.ow2.wildcat.hierarchy.attribute
Class POJOAttribute

java.lang.Object
  extended by org.ow2.wildcat.hierarchy.attribute.POJOAttribute
All Implemented Interfaces:
java.io.Serializable, Attribute, Mountable

public class POJOAttribute
extends java.lang.Object
implements Attribute, java.io.Serializable

Attribute holding an object.

See Also:
Serialized Form

Field Summary
protected  Context context
           
protected  Path path
           
protected  java.lang.Object value
           
 
Constructor Summary
POJOAttribute(java.lang.Object value)
           
 
Method Summary
 java.lang.Object getValue()
           
 boolean isMount()
           
 void mount(Context context, Path mountPoint)
          Mount the Mountable.
 java.lang.Object setValue(java.lang.Object value)
          Set attribute's value.
 void unMount()
          Unmount the Mountable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected Context context

path

protected Path path

value

protected java.lang.Object value
Constructor Detail

POJOAttribute

public POJOAttribute(java.lang.Object value)
Method Detail

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface Attribute
Returns:
attribute's value

setValue

public java.lang.Object setValue(java.lang.Object value)
Description copied from interface: Attribute
Set attribute's value.

Specified by:
setValue in interface Attribute
Parameters:
value - the new value
Returns:
the old value

isMount

public boolean isMount()
Specified by:
isMount in interface Mountable
Returns:
true if is mount, false else.

mount

public void mount(Context context,
                  Path mountPoint)
Description copied from interface: Mountable
Mount the Mountable.

Specified by:
mount in interface Mountable
Parameters:
context - the context the Mountable is attached
mountPoint - the path to mount it

unMount

public void unMount()
Description copied from interface: Mountable
Unmount the Mountable.

Specified by:
unMount in interface Mountable


Copyright © 2008 OW2 Consortium. All Rights Reserved.