org.eclipse.higgins.idas
Interface IProperty

Package class diagram package IProperty
All Known Subinterfaces:
IAttribute, IMetadata
All Known Implementing Classes:
BasicAttribute, BasicMetadata, BasicProperty

public interface IProperty

Represents a typed value (or values).


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

Method Detail

getType

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 may 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

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

Throws:
IdASException

setValue

void setValue(IPropertyValue value)
              throws IdASException
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