org.eclipse.higgins.idas
Interface IHasAttributes

Package class diagram package IHasAttributes
All Known Subinterfaces:
IComplexValue, IDigitalSubject
All Known Implementing Classes:
AbstractComplexValue, BasicAttributeSet

public interface IHasAttributes


Method Summary
 void addAttribute(IAttribute attribute)
           
 IAttribute createAttribute(URI type, IPropertyValue value)
          Creates and adds an attribute for this object.
 IAttribute createAttribute(URI type, Iterable<IPropertyValue> values)
          Creates and adds an attribute for this object.
 IAttribute getAttribute(URI attrID)
          Return specified attribute of this object
 Iterable<IAttribute> getAttributes()
          Return all attributes of this object
 void removeAttribute(IAttribute attribute)
           
 

Method Detail

createAttribute

IAttribute createAttribute(URI type,
                           IPropertyValue value)
                           throws IdASException
Creates and adds an attribute for this object.

Parameters:
type - The attribute's type.
value - The attribute's value.
Returns:
The resulting Attribute.
Throws:
IdASException

createAttribute

IAttribute createAttribute(URI type,
                           Iterable<IPropertyValue> values)
                           throws IdASException
Creates and adds an attribute for this object.

Parameters:
type - The attribute's type.
values - The attribute's values.
Returns:
The resulting Attribute.
Throws:
IdASException

addAttribute

void addAttribute(IAttribute attribute)
                  throws IdASException
Throws:
IdASException

removeAttribute

void removeAttribute(IAttribute attribute)
                     throws IdASException
Throws:
IdASException

getAttributes

Iterable<IAttribute> getAttributes()
                                   throws IdASException
Return all attributes of this object

Returns:
An Iterable object of IAttributes.
Throws:
IdASException

getAttribute

IAttribute getAttribute(URI attrID)
                        throws IdASException
Return specified attribute of this object

Parameters:
attrID - The identifier of the attribute to be returned.
Returns:
An IAttribute or null if none exits.
Throws:
IdASException


Copyright © 2006 Novell Inc. All Rights Reserved.
This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html

Contributors:
  Jim Sermersheim (Novell, Inc.) - initial API and implementation