org.deri.wsmo4j.factory
Class DataFactoryImpl

java.lang.Object
  extended by org.deri.wsmo4j.factory.DataFactoryImpl
All Implemented Interfaces:
org.wsmo.factory.DataFactory

public class DataFactoryImpl
extends Object
implements org.wsmo.factory.DataFactory

Interface or class description

 Created on Sep 5, 2005
 Committed by $Author$
 

Version:
$Revision$ $Date$
Author:
Holger Lausne (holger.lausen@deri.org)

Field Summary
 
Fields inherited from interface org.wsmo.factory.DataFactory
DATAFACTORY_WSMO_FACTORY
 
Constructor Summary
DataFactoryImpl()
           
DataFactoryImpl(Map map)
          The DataFactory is initialised based on the supplied preferences.
 
Method Summary
 org.omwg.ontology.ComplexDataValue createDataValue(org.omwg.ontology.ComplexDataType type, org.omwg.ontology.SimpleDataValue argumentValues)
           
 org.omwg.ontology.ComplexDataValue createDataValue(org.omwg.ontology.ComplexDataType type, org.omwg.ontology.SimpleDataValue[] argumentValues)
           
 org.omwg.ontology.DataValue createDataValueFromJavaObject(org.omwg.ontology.WsmlDataType type, Object value)
           
 org.omwg.ontology.ComplexDataValue createWsmlBase64Binary(byte[] value)
           
 org.omwg.ontology.ComplexDataValue createWsmlBoolean(Boolean value)
           
 org.omwg.ontology.ComplexDataValue createWsmlBoolean(String value)
           
 org.omwg.ontology.WsmlDataType createWsmlDataType(org.wsmo.common.IRI typeIRI)
           
 org.omwg.ontology.WsmlDataType createWsmlDataType(String typeIRI)
           
 org.omwg.ontology.ComplexDataValue createWsmlDate(Calendar value)
           
 org.omwg.ontology.ComplexDataValue createWsmlDate(int year, int month, int day, int tzHour, int tzMinute)
           
 org.omwg.ontology.ComplexDataValue createWsmlDate(String year, String month, String day, String tzHour, String tzMinute)
           
 org.omwg.ontology.ComplexDataValue createWsmlDateTime(Calendar value)
           
 org.omwg.ontology.ComplexDataValue createWsmlDateTime(int year, int month, int day, int hour, int minute, float second, int tzHour, int tzMinute)
           
 org.omwg.ontology.ComplexDataValue createWsmlDateTime(int year, int month, int day, int hour, int minute, int second, int tzHour, int tzMinute)
           
 org.omwg.ontology.ComplexDataValue createWsmlDateTime(String year, String month, String day, String hour, String minute, String second, String tzHour, String tzMinute)
           
 org.omwg.ontology.SimpleDataValue createWsmlDecimal(BigDecimal value)
           
 org.omwg.ontology.SimpleDataValue createWsmlDecimal(String value)
           
 org.omwg.ontology.ComplexDataValue createWsmlDouble(Double value)
           
 org.omwg.ontology.ComplexDataValue createWsmlDouble(String value)
           
 org.omwg.ontology.ComplexDataValue createWsmlDuration(int year, int month, int day, int hour, int minute, int second)
           
 org.omwg.ontology.ComplexDataValue createWsmlDuration(String year, String month, String day, String hour, String minute, String second)
           
 org.omwg.ontology.ComplexDataValue createWsmlFloat(Float value)
           
 org.omwg.ontology.ComplexDataValue createWsmlFloat(String value)
           
 org.omwg.ontology.ComplexDataValue createWsmlGregorianDay(int day)
           
 org.omwg.ontology.ComplexDataValue createWsmlGregorianDay(String day)
           
 org.omwg.ontology.ComplexDataValue createWsmlGregorianMonth(int month)
           
 org.omwg.ontology.ComplexDataValue createWsmlGregorianMonth(String month)
           
 org.omwg.ontology.ComplexDataValue createWsmlGregorianMonthDay(int month, int day)
           
 org.omwg.ontology.ComplexDataValue createWsmlGregorianMonthDay(String month, String day)
           
 org.omwg.ontology.ComplexDataValue createWsmlGregorianYear(int year)
           
 org.omwg.ontology.ComplexDataValue createWsmlGregorianYear(String year)
           
 org.omwg.ontology.ComplexDataValue createWsmlGregorianYearMonth(int year, int month)
           
 org.omwg.ontology.ComplexDataValue createWsmlGregorianYearMonth(String year, String month)
           
 org.omwg.ontology.SimpleDataValue createWsmlInteger(BigInteger value)
           
 org.omwg.ontology.SimpleDataValue createWsmlInteger(int value)
           
 org.omwg.ontology.SimpleDataValue createWsmlInteger(String value)
           
 org.omwg.ontology.SimpleDataValue createWsmlString(String value)
           
 org.omwg.ontology.ComplexDataValue createWsmlTime(Calendar value)
           
 org.omwg.ontology.ComplexDataValue createWsmlTime(int hour, int minute, float second, int tzHour, int tzMinute)
           
 org.omwg.ontology.ComplexDataValue createWsmlTime(int hour, int minute, int second, int tzHour, int tzMinute)
           
 org.omwg.ontology.ComplexDataValue createWsmlTime(String hour, String minute, String second, String tzHour, String tzMinute)
           
 org.omwg.ontology.ComplexDataValue creatWsmlHexBinary(byte[] value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFactoryImpl

public DataFactoryImpl()

DataFactoryImpl

public DataFactoryImpl(Map map)
The DataFactory is initialised based on the supplied preferences. The properties map can contain the factories to be used as Strings or as instances. If a factory to use is only indicated as String, the constructor needs to create an instance of this given factory.

Parameters:
map -
Method Detail

createDataValue

public org.omwg.ontology.ComplexDataValue createDataValue(org.omwg.ontology.ComplexDataType type,
                                                          org.omwg.ontology.SimpleDataValue argumentValues)
Specified by:
createDataValue in interface org.wsmo.factory.DataFactory

createDataValue

public org.omwg.ontology.ComplexDataValue createDataValue(org.omwg.ontology.ComplexDataType type,
                                                          org.omwg.ontology.SimpleDataValue[] argumentValues)
Specified by:
createDataValue in interface org.wsmo.factory.DataFactory

createDataValueFromJavaObject

public org.omwg.ontology.DataValue createDataValueFromJavaObject(org.omwg.ontology.WsmlDataType type,
                                                                 Object value)
Specified by:
createDataValueFromJavaObject in interface org.wsmo.factory.DataFactory
Parameters:
type -
value -
Returns:

createWsmlDecimal

public org.omwg.ontology.SimpleDataValue createWsmlDecimal(BigDecimal value)
Specified by:
createWsmlDecimal in interface org.wsmo.factory.DataFactory

createWsmlInteger

public org.omwg.ontology.SimpleDataValue createWsmlInteger(BigInteger value)
Specified by:
createWsmlInteger in interface org.wsmo.factory.DataFactory

createWsmlString

public org.omwg.ontology.SimpleDataValue createWsmlString(String value)
Specified by:
createWsmlString in interface org.wsmo.factory.DataFactory

createWsmlDataType

public org.omwg.ontology.WsmlDataType createWsmlDataType(org.wsmo.common.IRI typeIRI)
Specified by:
createWsmlDataType in interface org.wsmo.factory.DataFactory

createWsmlDataType

public org.omwg.ontology.WsmlDataType createWsmlDataType(String typeIRI)
Specified by:
createWsmlDataType in interface org.wsmo.factory.DataFactory

createWsmlBoolean

public org.omwg.ontology.ComplexDataValue createWsmlBoolean(Boolean value)
Specified by:
createWsmlBoolean in interface org.wsmo.factory.DataFactory

createWsmlBoolean

public org.omwg.ontology.ComplexDataValue createWsmlBoolean(String value)
Specified by:
createWsmlBoolean in interface org.wsmo.factory.DataFactory

createWsmlDuration

public org.omwg.ontology.ComplexDataValue createWsmlDuration(int year,
                                                             int month,
                                                             int day,
                                                             int hour,
                                                             int minute,
                                                             int second)
Specified by:
createWsmlDuration in interface org.wsmo.factory.DataFactory

createWsmlDuration

public org.omwg.ontology.ComplexDataValue createWsmlDuration(String year,
                                                             String month,
                                                             String day,
                                                             String hour,
                                                             String minute,
                                                             String second)
Specified by:
createWsmlDuration in interface org.wsmo.factory.DataFactory

createWsmlDateTime

public org.omwg.ontology.ComplexDataValue createWsmlDateTime(Calendar value)
Specified by:
createWsmlDateTime in interface org.wsmo.factory.DataFactory

createWsmlDateTime

public org.omwg.ontology.ComplexDataValue createWsmlDateTime(int year,
                                                             int month,
                                                             int day,
                                                             int hour,
                                                             int minute,
                                                             int second,
                                                             int tzHour,
                                                             int tzMinute)
Specified by:
createWsmlDateTime in interface org.wsmo.factory.DataFactory

createWsmlDateTime

public org.omwg.ontology.ComplexDataValue createWsmlDateTime(int year,
                                                             int month,
                                                             int day,
                                                             int hour,
                                                             int minute,
                                                             float second,
                                                             int tzHour,
                                                             int tzMinute)
Specified by:
createWsmlDateTime in interface org.wsmo.factory.DataFactory

createWsmlDateTime

public org.omwg.ontology.ComplexDataValue createWsmlDateTime(String year,
                                                             String month,
                                                             String day,
                                                             String hour,
                                                             String minute,
                                                             String second,
                                                             String tzHour,
                                                             String tzMinute)
Specified by:
createWsmlDateTime in interface org.wsmo.factory.DataFactory

createWsmlTime

public org.omwg.ontology.ComplexDataValue createWsmlTime(Calendar value)
Specified by:
createWsmlTime in interface org.wsmo.factory.DataFactory

createWsmlTime

public org.omwg.ontology.ComplexDataValue createWsmlTime(int hour,
                                                         int minute,
                                                         int second,
                                                         int tzHour,
                                                         int tzMinute)
Specified by:
createWsmlTime in interface org.wsmo.factory.DataFactory

createWsmlTime

public org.omwg.ontology.ComplexDataValue createWsmlTime(int hour,
                                                         int minute,
                                                         float second,
                                                         int tzHour,
                                                         int tzMinute)
Specified by:
createWsmlTime in interface org.wsmo.factory.DataFactory

createWsmlTime

public org.omwg.ontology.ComplexDataValue createWsmlTime(String hour,
                                                         String minute,
                                                         String second,
                                                         String tzHour,
                                                         String tzMinute)
Specified by:
createWsmlTime in interface org.wsmo.factory.DataFactory

createWsmlDate

public org.omwg.ontology.ComplexDataValue createWsmlDate(Calendar value)
Specified by:
createWsmlDate in interface org.wsmo.factory.DataFactory

createWsmlDate

public org.omwg.ontology.ComplexDataValue createWsmlDate(int year,
                                                         int month,
                                                         int day,
                                                         int tzHour,
                                                         int tzMinute)
Specified by:
createWsmlDate in interface org.wsmo.factory.DataFactory

createWsmlDate

public org.omwg.ontology.ComplexDataValue createWsmlDate(String year,
                                                         String month,
                                                         String day,
                                                         String tzHour,
                                                         String tzMinute)
Specified by:
createWsmlDate in interface org.wsmo.factory.DataFactory

createWsmlGregorianYearMonth

public org.omwg.ontology.ComplexDataValue createWsmlGregorianYearMonth(int year,
                                                                       int month)
Specified by:
createWsmlGregorianYearMonth in interface org.wsmo.factory.DataFactory

createWsmlGregorianYearMonth

public org.omwg.ontology.ComplexDataValue createWsmlGregorianYearMonth(String year,
                                                                       String month)
Specified by:
createWsmlGregorianYearMonth in interface org.wsmo.factory.DataFactory

createWsmlGregorianYear

public org.omwg.ontology.ComplexDataValue createWsmlGregorianYear(int year)
Specified by:
createWsmlGregorianYear in interface org.wsmo.factory.DataFactory

createWsmlGregorianYear

public org.omwg.ontology.ComplexDataValue createWsmlGregorianYear(String year)
Specified by:
createWsmlGregorianYear in interface org.wsmo.factory.DataFactory

createWsmlGregorianMonthDay

public org.omwg.ontology.ComplexDataValue createWsmlGregorianMonthDay(int month,
                                                                      int day)
Specified by:
createWsmlGregorianMonthDay in interface org.wsmo.factory.DataFactory

createWsmlGregorianMonthDay

public org.omwg.ontology.ComplexDataValue createWsmlGregorianMonthDay(String month,
                                                                      String day)
Specified by:
createWsmlGregorianMonthDay in interface org.wsmo.factory.DataFactory

createWsmlGregorianMonth

public org.omwg.ontology.ComplexDataValue createWsmlGregorianMonth(int month)
Specified by:
createWsmlGregorianMonth in interface org.wsmo.factory.DataFactory

createWsmlGregorianMonth

public org.omwg.ontology.ComplexDataValue createWsmlGregorianMonth(String month)
Specified by:
createWsmlGregorianMonth in interface org.wsmo.factory.DataFactory

createWsmlGregorianDay

public org.omwg.ontology.ComplexDataValue createWsmlGregorianDay(int day)
Specified by:
createWsmlGregorianDay in interface org.wsmo.factory.DataFactory

createWsmlGregorianDay

public org.omwg.ontology.ComplexDataValue createWsmlGregorianDay(String day)
Specified by:
createWsmlGregorianDay in interface org.wsmo.factory.DataFactory

creatWsmlHexBinary

public org.omwg.ontology.ComplexDataValue creatWsmlHexBinary(byte[] value)
Specified by:
creatWsmlHexBinary in interface org.wsmo.factory.DataFactory

createWsmlBase64Binary

public org.omwg.ontology.ComplexDataValue createWsmlBase64Binary(byte[] value)
Specified by:
createWsmlBase64Binary in interface org.wsmo.factory.DataFactory

createWsmlDecimal

public org.omwg.ontology.SimpleDataValue createWsmlDecimal(String value)
Specified by:
createWsmlDecimal in interface org.wsmo.factory.DataFactory

createWsmlInteger

public org.omwg.ontology.SimpleDataValue createWsmlInteger(String value)
Specified by:
createWsmlInteger in interface org.wsmo.factory.DataFactory

createWsmlInteger

public org.omwg.ontology.SimpleDataValue createWsmlInteger(int value)

createWsmlFloat

public org.omwg.ontology.ComplexDataValue createWsmlFloat(String value)
Specified by:
createWsmlFloat in interface org.wsmo.factory.DataFactory

createWsmlFloat

public org.omwg.ontology.ComplexDataValue createWsmlFloat(Float value)
Specified by:
createWsmlFloat in interface org.wsmo.factory.DataFactory

createWsmlDouble

public org.omwg.ontology.ComplexDataValue createWsmlDouble(Double value)
Specified by:
createWsmlDouble in interface org.wsmo.factory.DataFactory

createWsmlDouble

public org.omwg.ontology.ComplexDataValue createWsmlDouble(String value)
Specified by:
createWsmlDouble in interface org.wsmo.factory.DataFactory


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.