org.eclipse.higgins.idas
Interface IPropertyValue

Package class diagram package IPropertyValue
All Known Subinterfaces:
IComplexValue, ISimpleValue
All Known Implementing Classes:
AbstractComplexValue, AbstractSimpleValue, BasicValueBase64Binary, BasicValueBoolean, BasicValueByte, BasicValueDate, BasicValueDateTime, BasicValueDay, BasicValueDecimal, BasicValueDouble, BasicValueFloat, BasicValueHexBinary, BasicValueInt, BasicValueInteger, BasicValueLanguage, BasicValueLong, BasicValueMonth, BasicValueMonthDay, BasicValueName, BasicValueNCName, BasicValueNegativeInteger, BasicValueNMTOKEN, BasicValueNonNegativeInteger, BasicValueNonPositiveInteger, BasicValueNormalizedString, BasicValuePositiveInteger, BasicValueShort, BasicValueString, BasicValueTime, BasicValueToken, BasicValueUnsignedByte, BasicValueUnsignedInt, BasicValueUnsignedLong, BasicValueUnsignedShort, BasicValueURI, BasicValueYear, BasicValueYearMonth

public interface IPropertyValue

Holds the value of a property.

TODO: for convenience, add a method which returns the OWL range for this property's value(s). From this, one should be able to infer the Java class type of the value(s).

When the value is a Literal (isSimple() returns true), an instance of this interface may be cast to ISimpleValue, and the table found at ISimpleValue.getData() is used to determine the type returned from ISimpleValue.getData(). When the value is a Resource (isSimple() returns false), an instance of this interface may be cast to IComplexValue.


Method Summary
 Object getData()
          Returns the backing Java object for this property value.
 boolean isSimple()
           
 

Method Detail

isSimple

boolean isSimple()
                 throws IdASException
Throws:
IdASException

getData

Object getData()
               throws IdASException
Returns the backing Java object for this property value.

TODO: This method is a temporary hack to solve the issue brought up in this thread.

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