org.eclipse.higgins.idas
Class BasicProperty

Package class diagram package BasicProperty
java.lang.Object
  extended by org.eclipse.higgins.idas.BasicProperty
All Implemented Interfaces:
IProperty
Direct Known Subclasses:
BasicMetadata

public class BasicProperty
extends Object
implements IProperty

TODO: Add comments. Specifically regarding the mutability of _value


Constructor Summary
BasicProperty(URI type)
           
BasicProperty(URI type, IPropertyValue value)
           
BasicProperty(URI type, Vector<IPropertyValue> values)
           
 
Method Summary
 URI getType()
           
 IPropertyValue getValue()
          Returns a single value for this iProperty.
 Iterable<IPropertyValue> getValues()
          Returns all values for this iProperty.
 void setValue(IPropertyValue value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicProperty

public BasicProperty(URI type)

BasicProperty

public BasicProperty(URI type,
                     IPropertyValue value)

BasicProperty

public BasicProperty(URI type,
                     Vector<IPropertyValue> values)
Method Detail

getType

public URI getType()
            throws IdASException
Specified by:
getType in interface IProperty
Throws:
IdASException

getValue

public IPropertyValue getValue()
                        throws IdASException
Description copied from interface: IProperty
Returns a single value for this iProperty. In the case where this property has multiple values, the particular value returned is indeterminate.

Specified by:
getValue in interface IProperty
Throws:
IdASException

setValue

public void setValue(IPropertyValue value)
              throws IdASException
Specified by:
setValue in interface IProperty
Throws:
IdASException

getValues

public Iterable<IPropertyValue> getValues()
                                   throws IdASException
Description copied from interface: IProperty
Returns all values for this iProperty.

Specified by:
getValues in interface IProperty
Throws:
IdASException