org.eclipse.higgins.idas
Interface IProperty

All Known Subinterfaces:
IAttribute, IMetadata
All Known Implementing Classes:
BasicAttribute, BasicMetadata, BasicProperty

public interface IProperty

Represents a typed value (or values).


Method Summary
 java.net.URI getType()
          Returns the type of this property as a URI.
 IPropertyValue getValue()
          Returns a single value for this iProperty.
 java.lang.Iterable<IPropertyValue> getValues()
          Returns all values for this iProperty.
 void setValue(IPropertyValue value)
           
 

Method Detail

getType

java.net.URI getType()
                     throws IdASException
Returns the type of this property as a URI.

From this URI, a consumer should be able to derive some kind of human-readable name (such as "age", "title", "employeeNumber", etc.).

A consumer might also be able to determine from this URI, the type or range of types of object(s) returned from getValue() and getValues().

These determinations may be made either by examining parts of the URI itself, or dereferencing it (or parts) to other sources of information.

Throws:
IdASException

getValue

IPropertyValue getValue()
                        throws IdASException
Returns a single value for this iProperty. In the case where this property has multiple values, the particular value returned is indeterminate.

Throws:
IdASException

getValues

java.lang.Iterable<IPropertyValue> getValues()
                                             throws IdASException
Returns all values for this iProperty.

Throws:
IdASException

setValue

void setValue(IPropertyValue value)
              throws IdASException
Throws:
IdASException