org.glite.data.catalog.service
Class Attribute

java.lang.Object
  extended byorg.glite.data.catalog.service.Attribute

public class Attribute
extends java.lang.Object

Attribute contains a name, a value and a type. It is the object with which items/entries in the Metadata Catalog can be associated.

An attribute in the Metadata Catalog is unique in the sense that the combination name/type MUST be unique. An attribute MUST have only one type, even when associated with more than one schema.

All values stored inside an Attribute are encoded as strings, even if the backend is storing them using a different type. The type of an Attribute is a hint on the content of this string, so that the backend can optimize storage.

See Also:
org.glite.data.catalog.service.meta, MetadataBase, MetadataCatalog, MetadataSchema

Field Summary
 java.lang.String name
          name is the Metadata Catalog attribute's name.
 java.lang.String type
          type is the Metadata Catalog attribute's type.
 java.lang.String value
          value is the Metadata Catalog attribute's value.
 
Constructor Summary
Attribute()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
name is the Metadata Catalog attribute's name. It is a string that describes the attribute.


value

public java.lang.String value
value is the Metadata Catalog attribute's value. All values are always encoded as strings, even if the backend is storing them in a different format.


type

public java.lang.String type
type is the Metadata Catalog attribute's type. It is a hint for the backend to know which data type to use for storage.

Constructor Detail

Attribute

public Attribute()


Copyright © 2004 EU-EGEE