uk.org.ogsadai.client.toolkit.properties
Class SimplePropertyImpl

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.properties.SimplePropertyImpl
All Implemented Interfaces:
Property

public class SimplePropertyImpl
extends java.lang.Object
implements Property

A representation of a property as a name-value pair.

Author:
The OGSA-DAI Team.
See Also:
Property

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private  javax.xml.namespace.QName mName
          Property name
private  java.lang.Object mValue
          Property value
 
Constructor Summary
SimplePropertyImpl(javax.xml.namespace.QName name, java.lang.Object value)
          Create a new property.
 
Method Summary
 javax.xml.namespace.QName getName()
          Gets the property name.
 java.lang.Object getValue()
          Gets the property value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

mName

private javax.xml.namespace.QName mName
Property name


mValue

private java.lang.Object mValue
Property value

Constructor Detail

SimplePropertyImpl

public SimplePropertyImpl(javax.xml.namespace.QName name,
                          java.lang.Object value)
Create a new property.

Parameters:
name - Property name.
value - Initial value.
Throws:
java.lang.IllegalArgumentException - if name is null.
Method Detail

getName

public javax.xml.namespace.QName getName()
Description copied from interface: Property
Gets the property name.

Specified by:
getName in interface Property
Returns:
property name.

getValue

public java.lang.Object getValue()
Description copied from interface: Property
Gets the property value.

Specified by:
getValue in interface Property
Returns:
property value.