org.iges.grads.server
Class MetadataAttribute

java.lang.Object
  |
  +--org.iges.grads.server.MetadataAttribute
All Implemented Interfaces:
java.io.Serializable

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

Stores a metadata attribute to be added to the DAS document for a dataset.

See Also:
Serialized Form

Field Summary
 java.lang.String name
           
 java.lang.String type
           
 java.lang.String val
           
static java.util.List VALID_TYPES
           
 java.lang.String var
           
 
Constructor Summary
MetadataAttribute(java.lang.String var, java.lang.String type, java.lang.String name, java.lang.String val)
          Creates a new attribute.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

var

public java.lang.String var

type

public java.lang.String type

name

public java.lang.String name

val

public java.lang.String val

VALID_TYPES

public static final java.util.List VALID_TYPES
Constructor Detail

MetadataAttribute

public MetadataAttribute(java.lang.String var,
                         java.lang.String type,
                         java.lang.String name,
                         java.lang.String val)
                  throws AnagramException
Creates a new attribute. The value of the attribute is automatically converted as follows: For attributes with type "String", quotation marks `"' are escaped as `\"'. For attributes of all other types, blanks ` ' are replaced by commas `, '.

Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object