|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.higgins.idas.BasicAttribute
public class BasicAttribute
Implements IAttribute using BasicProperty
and BasicMetadata
Constructor Summary | |
---|---|
BasicAttribute(URI type)
|
|
BasicAttribute(URI type,
IPropertyValue value)
|
|
BasicAttribute(URI type,
IPropertyValue value,
HashSet<IMetadata> metadataSet)
|
|
BasicAttribute(URI type,
Vector<IPropertyValue> values)
|
|
BasicAttribute(URI type,
Vector<IPropertyValue> values,
HashSet<IMetadata> metadataSet)
|
Method Summary | |
---|---|
void |
addMetadata(IMetadata metadata)
|
IMetadata |
createMetadata(URI type,
IPropertyValue value)
Creates a metadata item which can be added to metadata held by this Object. |
Iterable<IMetadata> |
getMetadataSet()
Returns this Object's metadata elements as an Iterable. |
URI |
getType()
|
IPropertyValue |
getValue()
Returns a single value for this iProperty. |
Iterable<IPropertyValue> |
getValues()
Returns all values for this iProperty. |
void |
removeMetadata(IMetadata metadata)
|
void |
setValue(IPropertyValue value)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicAttribute(URI type)
public BasicAttribute(URI type, IPropertyValue value)
public BasicAttribute(URI type, Vector<IPropertyValue> values)
public BasicAttribute(URI type, IPropertyValue value, HashSet<IMetadata> metadataSet)
public BasicAttribute(URI type, Vector<IPropertyValue> values, HashSet<IMetadata> metadataSet)
Method Detail |
---|
public URI getType() throws IdASException
getType
in interface IProperty
IdASException
IProperty.getType()
public IPropertyValue getValue() throws IdASException
IProperty
getValue
in interface IProperty
IdASException
IProperty.getValue()
public Iterable<IPropertyValue> getValues() throws IdASException
IProperty
getValues
in interface IProperty
IdASException
IProperty.getValues()
public void setValue(IPropertyValue value) throws IdASException
setValue
in interface IProperty
IdASException
IProperty.setValue(IPropertyValue)
public IMetadata createMetadata(URI type, IPropertyValue value) throws IdASException
IHasMetadata
createMetadata
in interface IHasMetadata
type
- The type of metadata. This defines the datatype of the value.value
- The value of this metadata. The type of this is determined by the type arg.
IdASException
- TODO: Specify whether this also adds the produced IMetadata to this Object, or if addItem must subsequently be called.TODO: If this method also adds, note that updates to the returned IMetadata affect the added item (i.e. a reference, not a copy is stored).
IHasMetadata.createMetadata(URI, IPropertyValue)
public void addMetadata(IMetadata metadata) throws IdASException
addMetadata
in interface IHasMetadata
IdASException
IHasMetadata.addMetadata(IMetadata)
public void removeMetadata(IMetadata metadata) throws IdASException
removeMetadata
in interface IHasMetadata
IdASException
IHasMetadata.removeMetadata(IMetadata)
public Iterable<IMetadata> getMetadataSet() throws IdASException
IHasMetadata
getMetadataSet
in interface IHasMetadata
IdASException
IHasMetadata.getMetadataSet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |