gov.nih.nci.lexbig.ext
Class Property

java.lang.Object
  extended by gov.nih.nci.lexbig.ext.Property
All Implemented Interfaces:
java.io.Serializable

public class Property
extends java.lang.Object
implements java.io.Serializable

Property

Since:
DLBExt 1.0
Version:
DLBExt 1.0
Author:
Northrop Grumman Information Technology
See Also:
Serialized Form

Constructor Summary
Property()
          default constructor
Property(java.lang.String name, java.lang.String value)
          Constructs a Property with the given name and value.
 
Method Summary
 void addQualifier(Qualifier qualifier)
          Adds the specific qualifier to the property.
 void addQualifier(java.lang.String qualifierName, java.lang.String qualifierValue)
          Adds the specific qualifier to the property.
 java.lang.String getName()
          Gets name
 java.util.Vector getQualifierCollection()
          Gets qualifiers
 java.util.Vector getQualifiers()
          Gets qualifiers
 java.lang.String getValue()
          Gets value
 boolean hasQualifier()
          Checks if contains any qualifier since lexrpc 2.1
 void setName(java.lang.String name)
          Assigns a value to property name
 void setValue(java.lang.String value)
          Assigns a value to property value
 org.w3c.dom.Document toDOM()
          Gets a XML Document representation of a Property object
 java.lang.String toString()
          Gets a String representation of a Property object
 java.lang.String toXML()
          Gets a XML representation of a Property object in String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Property

public Property()
default constructor

Since:
lexrpc 2.1

Property

public Property(java.lang.String name,
                java.lang.String value)
Constructs a Property with the given name and value.

Parameters:
name - name of the Property.
value - value of the Property.
Since:
lexrpc 2.0
Method Detail

setName

public void setName(java.lang.String name)
Assigns a value to property name

Parameters:
name - property name
Since:
DLBExt 1.0

setValue

public void setValue(java.lang.String value)
Assigns a value to property value

Parameters:
value - property name
Since:
DLBExt 1.0

getName

public java.lang.String getName()
Gets name

Returns:
name
Since:
DLBExt 1.0

getValue

public java.lang.String getValue()
Gets value

Returns:
value
Since:
DLBExt 1.0

addQualifier

public void addQualifier(java.lang.String qualifierName,
                         java.lang.String qualifierValue)
Adds the specific qualifier to the property.

Parameters:
qualifierName - the qualifier name.
qualifierValue - the qualifier value.
Since:
DLBExt 1.0

addQualifier

public void addQualifier(Qualifier qualifier)
Adds the specific qualifier to the property.

Parameters:
qualifier - an instance of Qualifier
Since:
DLBExt 1.0

getQualifiers

public java.util.Vector getQualifiers()
Gets qualifiers

Returns:
qualifiers
Since:
DLBExt 1.0

getQualifierCollection

public java.util.Vector getQualifierCollection()
Gets qualifiers

Returns:
qualifiers
Since:
DLBExt 1.0

hasQualifier

public boolean hasQualifier()
Checks if contains any qualifier since lexrpc 2.1

Returns:
qualifiers
Since:
DLBExt 1.0

toXML

public java.lang.String toXML()
Gets a XML representation of a Property object in String

Returns:
a XML representation of a Property object in String
Since:
DLBExt 1.0

toString

public java.lang.String toString()
Gets a String representation of a Property object

Overrides:
toString in class java.lang.Object
Returns:
a String representation of a Property object
Since:
DLBExt 1.0

toDOM

public org.w3c.dom.Document toDOM()
Gets a XML Document representation of a Property object

Returns:
a XML Document representation of a Property object
Since:
DLBExt 1.0


Copyright © 2007 National Cancer Institute (NCI). All Rights Reserved.