org.deri.iris.api.factory
Interface IConcreteFactory

All Known Implementing Classes:
ConcreteFactory

public interface IConcreteFactory

An interface that can be used to create set of data types supported by this engine.


Method Summary
 IAnyURI createAnyURI(URI uri)
          Creates a new term representing a xs:anyURI.
 IBase64Binary createBase64Binary(String s)
          Create a Base64Binary term from a String representing a Base64Binary data type.
 IBooleanTerm createBoolean(boolean b)
          Create a boolean term from a boolean value.
 IBooleanTerm createBoolean(String value)
          Create a boolean term with a string value.
 IByteTerm createByte(byte value)
          Creates a new term representing a xs:byte.
 IDateTerm createDate(int year, int month, int day)
          Creates a new date object.
 IDateTerm createDate(int year, int month, int day, int tzHour, int tzMinute)
          Creates a new date object within the given timezone.
 IDateTime createDateTime(int year, int month, int day, int hour, int minute, double second, int tzHour, int tzMinute)
          Creates a datetime object with a given timezone.
 IDateTime createDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int tzHour, int tzMinute)
          Creates a datetime object with a given timezone.
 IDateTime createDateTimeStamp(int year, int month, int day, int hour, int minute, double second, int tzHour, int tzMinute)
          Creates a dateTimeStamp term for the specified values.
 IDayTimeDuration createDayTimeDuration(boolean positive, int day, int hour, int minute, double second)
          Creates a new term representing a xs:dayTimeDuration.
 IDayTimeDuration createDayTimeDuration(boolean positive, int day, int hour, int minute, int second, int millisecond)
          Creates a new term representing a xs:dayTimeDuration.
 IDecimalTerm createDecimal(BigDecimal value)
          Create a new decimal term.
 IDecimalTerm createDecimal(double d)
          Create a new decimal term.
 IDoubleTerm createDouble(double d)
          Create a double term.
 IDuration createDuration(boolean positive, int year, int month, int day, int hour, int minute, double second)
          Create a new Duration term.
 IDuration createDuration(boolean positive, int year, int month, int day, int hour, int minute, int second, int millisecond)
          Constructs a new duration.
 IDuration createDuration(long millis)
          Constructs a new duration out of a given amount of milliseconds.
 IENTITY createEntity(String entity)
          Create a new term representing a xs:ENTITY.
 IFloatTerm createFloat(float f)
          Create a new float term
 IGDay createGDay(int day)
          Create a new day term
 IGMonth createGMonth(int month)
          Create a new month term
 IGMonthDay createGMonthDay(int month, int day)
          Create a new month/day term
 IGYear createGYear(int year)
          Create a new year term
 IGYearMonth createGYearMonth(int year, int month)
          Create a new year/month term
 IHexBinary createHexBinary(String s)
          Create a new HexBinary term
 IID createID(String id)
          Create a new term representing a xs:ID.
 IIDREF createIDREF(String idRef)
          Create a new term representing a xs:IDREF.
 IIntTerm createInt(int value)
           Create a new term representing a xs:int.
 IIntegerTerm createInteger(BigInteger i)
           Create a new term representing a xs:integer.
 IIntegerTerm createInteger(int i)
           Create a new term representing a xs:integer.
 IIri createIri(String s)
          Create a new IRI term
 ILanguage createLanguage(String language)
          Create a new term representing a xs:language.
 ILongTerm createLong(long value)
           Create a new term representing a xs:long.
 IName createName(String name)
          Create a new term representing a xs:Name.
 INCName createNCName(String name)
          Create a new term representing a xs:NCName.
 INegativeInteger createNegativeInteger(BigInteger value)
           Create a new term representing a xs:negativeInteger.
 INMTOKEN createNMTOKEN(String token)
          Create a new term representing a xs:NMTOKEN.
 INonNegativeInteger createNonNegativeInteger(BigInteger value)
           Create a new term representing a xs:nonNegativeInteger.
 INonPositiveInteger createNonPositiveInteger(BigInteger value)
           Create a new term representing a xs:nonPositiveInteger.
 INormalizedString createNormalizedString(String string)
          Create a new term representing a xs:normalizedString.
 INOTATION createNOTATION(String namespaceName, String localPart)
          Creates a new term representing a xs:NOTATION.
 IPlainLiteral createPlainLiteral(String string)
          Creates a new PlainLiteral term.
 IPlainLiteral createPlainLiteral(String string, String language)
          Creates a new PlainLiteral term with the specified string and language tag.
 IPositiveInteger createPositiveInteger(BigInteger value)
           Create a new term representing a xs:positiveInteger.
 IQName createQName(String namespaceName, String localPart)
          Creates a new term representing a xs:QName.
 IShortTerm createShort(short value)
          Create a new term representing a xs:short.
 ISqName createSqName(IIri iri, String name)
          Create a new SQName term
 ISqName createSqName(String s)
          Create a new SQName term
 ITime createTime(int hour, int minute, double second, int tzHour, int tzMinute)
          Creates a time object with a given timezone.
 ITime createTime(int hour, int minute, int second, int millisecond, int tzHour, int tzMinute)
          Creates a time object with a given timezone.
 IToken createToken(String token)
          Create a new term representing a xs:token.
 IUnsignedByte createUnsignedByte(short value)
           Create a new term representing a xs:unsignedByte.
 IUnsignedInt createUnsignedInt(long value)
           Create a new term representing a xs:unsignedInt.
 IUnsignedLong createUnsignedLong(BigInteger value)
           Create a new term representing a xs:unsignedLong.
 IUnsignedShort createUnsignedShort(int value)
           Create a new term representing a xs:unsignedShort.
 IXMLLiteral createXMLLiteral(String string)
          Creates a new term representing a rdf:XMLLiteral.
 IXMLLiteral createXMLLiteral(String string, String lang)
          Creates a new term representing a rdf:XMLLiteral.
 IYearMonthDuration createYearMonthDuration(boolean positive, int year, int month)
          Creates a new term representing a xs:yearMonthDuration.
 

Method Detail

createBase64Binary

IBase64Binary createBase64Binary(String s)
Create a Base64Binary term from a String representing a Base64Binary data type.

Parameters:
s - The String representing a Base64Binary data type.
Returns:
The Base64Binary term.

createBoolean

IBooleanTerm createBoolean(boolean b)
Create a boolean term from a boolean value.

Parameters:
b - The value of the term
Returns:
The boolean term.

createBoolean

IBooleanTerm createBoolean(String value)
Create a boolean term with a string value.

Parameters:
value - The string value, which must be either 'true' or '1' for true, or 'false' or '0' for false.
Returns:
The boolean term.

createDate

IDateTerm createDate(int year,
                     int month,
                     int day)
Creates a new date object. The timezone will be set to GMT.

Parameters:
year - the year
month - the mont (1-12)
day - the day

createDate

IDateTerm createDate(int year,
                     int month,
                     int day,
                     int tzHour,
                     int tzMinute)
Creates a new date object within the given timezone.

Parameters:
year - the year
month - the mont (1-12)
day - the day
tzHour - the timezone hours (relative to GMT)
tzMinute - the timezone minutes (relative to GMT)
Throws:
IllegalArgumentException - if, the tzHour and tzMinute wheren't both positive, or negative

createDateTime

IDateTime createDateTime(int year,
                         int month,
                         int day,
                         int hour,
                         int minute,
                         double second,
                         int tzHour,
                         int tzMinute)
Creates a datetime object with a given timezone.

Parameters:
year - the years
month - the months (1-12)
day - day of the month
hour - the hours
minute - the minutes
second - the decimal seconds
tzHour - the timezone hours (relative to GMT)
tzMinute - the timezone minutes (relative to GMT)
Throws:
IllegalArgumentException - if, the tzHour and tzMinute wheren't both positive, or negative

createDateTime

IDateTime createDateTime(int year,
                         int month,
                         int day,
                         int hour,
                         int minute,
                         int second,
                         int millisecond,
                         int tzHour,
                         int tzMinute)
Creates a datetime object with a given timezone.

Parameters:
year - the years
month - the months (1-12)
day - day of the month
hour - the hours
minute - the minutes
second - the seconds
millisecond - the milliseconds
tzHour - the timezone hours (relative to GMT)
tzMinute - the timezone minutes (relative to GMT)
Throws:
IllegalArgumentException - if, the tzHour and tzMinute wheren't both positive, or negative

createDateTimeStamp

IDateTime createDateTimeStamp(int year,
                              int month,
                              int day,
                              int hour,
                              int minute,
                              double second,
                              int tzHour,
                              int tzMinute)
Creates a dateTimeStamp term for the specified values.

Parameters:
year - The year fragment.
month - The month fragment.
day - The Day of month fragment.
hour - The hour fragment.
minute - The minute fragment.
second - The second fragment.
tzHour - The timezone hour (relative to GMT) fragment.
tzMinute - The timezone minute (relative to GMT) fragment.
Throws:
IllegalArgumentException - If not both the tzHour and tzMinute are positive or negative.

createDayTimeDuration

IDayTimeDuration createDayTimeDuration(boolean positive,
                                       int day,
                                       int hour,
                                       int minute,
                                       double second)
Creates a new term representing a xs:dayTimeDuration.

Parameters:
positive - True if this term represents a positive duration, false otherwise.
day - The day.
hour - The hour.
minute - The minute.
second - The second.
Returns:
The new term representing a xs:dayTimeDuration.

createDayTimeDuration

IDayTimeDuration createDayTimeDuration(boolean positive,
                                       int day,
                                       int hour,
                                       int minute,
                                       int second,
                                       int millisecond)
Creates a new term representing a xs:dayTimeDuration.

Parameters:
positive - True if this term represents a positive duration, false otherwise.
day - The day.
hour - The hour.
minute - The minute.
second - The second.
millisecond - The millisecond.
Returns:
The new term representing a xs:dayTimeDuration.

createDecimal

IDecimalTerm createDecimal(double d)
Create a new decimal term.

Parameters:
d - The decimal value
Returns:
The new decimal term

createDecimal

IDecimalTerm createDecimal(BigDecimal value)
Create a new decimal term.

Parameters:
value - The decimal value.
Returns:
The new decimal term.

createDouble

IDoubleTerm createDouble(double d)
Create a double term.

Parameters:
d - The double values
Returns:
The new term

createDuration

IDuration createDuration(boolean positive,
                         int year,
                         int month,
                         int day,
                         int hour,
                         int minute,
                         double second)
Create a new Duration term.

Parameters:
positive - true is a positive duration
year -
month -
day -
hour -
minute -
second -
Returns:

createDuration

IDuration createDuration(boolean positive,
                         int year,
                         int month,
                         int day,
                         int hour,
                         int minute,
                         int second,
                         int millisecond)
Constructs a new duration.

Parameters:
positive - trueif the duration is positive, otherwise false
year - the yearspan
month - the monthspa (1-12)
day - the dayspan
hour - the hourspan
minute - the minutespan
second - the secondspan
millisecond - the millisecondspan

createDuration

IDuration createDuration(long millis)
Constructs a new duration out of a given amount of milliseconds. The milliseconds will be round down to the next second.

Parameters:
millis - the millisecond span

createFloat

IFloatTerm createFloat(float f)
Create a new float term

Parameters:
f - The float value
Returns:
The new float term

createGDay

IGDay createGDay(int day)
Create a new day term

Parameters:
day - The day value
Returns:
The new term

createGMonth

IGMonth createGMonth(int month)
Create a new month term

Parameters:
month - The month value
Returns:
The new term

createGMonthDay

IGMonthDay createGMonthDay(int month,
                           int day)
Create a new month/day term

Parameters:
month - The month value
day - The day value
Returns:
The new term

createGYear

IGYear createGYear(int year)
Create a new year term

Parameters:
year - The year value
Returns:
The new term

createGYearMonth

IGYearMonth createGYearMonth(int year,
                             int month)
Create a new year/month term

Parameters:
year - The year value
month - The month value
Returns:
The new term

createHexBinary

IHexBinary createHexBinary(String s)
Create a new HexBinary term

Parameters:
s - The hex binary value
Returns:
The new term

createInteger

IIntegerTerm createInteger(int i)

Create a new term representing a xs:integer.

Parameters:
i - The integer value.
Returns:
The new term.

createInteger

IIntegerTerm createInteger(BigInteger i)

Create a new term representing a xs:integer.

Parameters:
i - The BigInteger value.
Returns:
The new term.

createIri

IIri createIri(String s)
Create a new IRI term

Parameters:
s - The IRI value
Returns:
The new term

createSqName

ISqName createSqName(IIri iri,
                     String name)
Create a new SQName term

Parameters:
iri - The IRI value
s - The SQName value
Returns:
The new term

createSqName

ISqName createSqName(String s)
Create a new SQName term

Parameters:
s - The SQName value
Returns:
The new term

createPlainLiteral

IPlainLiteral createPlainLiteral(String string)
Creates a new PlainLiteral term. The string passed to this method is of the form "text@lang" and contains at least one "@".

Parameters:
string - A string of the form "text@lang", where "lang" is the language of the text. Must contain at least one "@" character.
Returns:
The PlainLiteral for the specified string.

createPlainLiteral

IPlainLiteral createPlainLiteral(String string,
                                 String language)
Creates a new PlainLiteral term with the specified string and language tag.

Parameters:
string - The string.
language - The language tag.
Returns:
The PlainLiteral term for the specified string and language tag.

createTime

ITime createTime(int hour,
                 int minute,
                 double second,
                 int tzHour,
                 int tzMinute)
Creates a time object with a given timezone.

Parameters:
hour - the hours
minute - the minutes
second - the decimal seconds
tzHour - the timezone hours (relative to GMT)
tzMinute - the timezone minutes (relative to GMT)
Throws:
IllegalArgumentException - if, the tzHour and tzMinute wheren't both positive, or negative

createTime

ITime createTime(int hour,
                 int minute,
                 int second,
                 int millisecond,
                 int tzHour,
                 int tzMinute)
Creates a time object with a given timezone.

Parameters:
hour - the hours
minute - the minutes
second - the seconds
millisecond - the milliseconds
tzHour - the timezone hours (relative to GMT)
tzMinute - the timezone minutes (relative to GMT)
Throws:
IllegalArgumentException - if, the tzHour and tzMinute wheren't both positive, or negative

createXMLLiteral

IXMLLiteral createXMLLiteral(String string)
Creates a new term representing a rdf:XMLLiteral.

Parameters:
string - A string representing a XML element.
Returns:
The new term representing the rdf:XMLLiteral.

createXMLLiteral

IXMLLiteral createXMLLiteral(String string,
                             String lang)
Creates a new term representing a rdf:XMLLiteral.

Parameters:
string - A string representing a XML element.
lang - The language of the XML element.
Returns:
The new term representing the rdf:XMLLiteral.

createYearMonthDuration

IYearMonthDuration createYearMonthDuration(boolean positive,
                                           int year,
                                           int month)
Creates a new term representing a xs:yearMonthDuration.

Parameters:
positive - True if this term represents a positive duration, false otherwise.
year - The year.
month - The month.
Returns:
The new term representing a xs:yearMonthDuration.

createAnyURI

IAnyURI createAnyURI(URI uri)
Creates a new term representing a xs:anyURI.

Parameters:
uri - The URI representing the value of the xs:anyURI.
Returns:
The term representing the xs:anyURI for the specified URI.

createQName

IQName createQName(String namespaceName,
                   String localPart)
Creates a new term representing a xs:QName.

Parameters:
namespaceName - The namespace name of the xs:QName. May be null.
localPart - The local part of the xs:QName.
Returns:
A term representing the xs:QName for the specified namespace name and local part.

createNOTATION

INOTATION createNOTATION(String namespaceName,
                         String localPart)
Creates a new term representing a xs:NOTATION.

Parameters:
namespaceName - The namespace name of the xs:NOTATION.
localPart - The local part of the xs:NOTATION. May be null.
Returns:
A term representing the xs:NOTATION for the specified namespace name and local part.

createByte

IByteTerm createByte(byte value)
Creates a new term representing a xs:byte.

Parameters:
value - The byte value.
Returns:
The term representing the xs:byte for the specified byte.

createEntity

IENTITY createEntity(String entity)
Create a new term representing a xs:ENTITY.

Parameters:
entity - The string representing the value of the xs:ENTITY.
Returns:
The term representing the xs:ENTITY for the specified string.

createID

IID createID(String id)
Create a new term representing a xs:ID.

Parameters:
id - The string representing the value of the xs:ID.
Returns:
The term representing the xs:ID for the specified string.

createIDREF

IIDREF createIDREF(String idRef)
Create a new term representing a xs:IDREF.

Parameters:
idRef - The string representing the value of the xs:IDREF.
Returns:
The term representing the xs:IDREF for the specified string.

createLanguage

ILanguage createLanguage(String language)
Create a new term representing a xs:language.

Parameters:
language - The string representing the value of the xs:language.
Returns:
The term representing the xs:language for the specified string.

createLong

ILongTerm createLong(long value)

Create a new term representing a xs:long.

Parameters:
value - The integer value representing the value of the xs:long.
Returns:
The term representing the xs:long for the specified integer value.

createName

IName createName(String name)
Create a new term representing a xs:Name.

Parameters:
name - The string value representing the value of the xs:Name.
Returns:
The term representing the xs:Name for the specified string.

createNCName

INCName createNCName(String name)
Create a new term representing a xs:NCName.

Parameters:
name - The string value representing the value of the xs:NCName.
Returns:
The term representing the xs:NCName for the specified string.

createNegativeInteger

INegativeInteger createNegativeInteger(BigInteger value)

Create a new term representing a xs:negativeInteger.

Parameters:
value - The BigInteger value representing the value of the xs:negativeInteger.
Returns:
The term representing the xs:negativeInteger for the specified BigInteger value.

createNMTOKEN

INMTOKEN createNMTOKEN(String token)
Create a new term representing a xs:NMTOKEN.

Parameters:
token - The string value representing the value of the xs:NMTOKEN.
Returns:
The term representing the xs:NMTOKEN for the specified string.

createNonNegativeInteger

INonNegativeInteger createNonNegativeInteger(BigInteger value)

Create a new term representing a xs:nonNegativeInteger.

Parameters:
value - The BigInteger value representing the value of the xs:nonNegativeInteger.
Returns:
The term representing the xs:nonNegativeInteger for the specified BigInteger value.

createNonPositiveInteger

INonPositiveInteger createNonPositiveInteger(BigInteger value)

Create a new term representing a xs:nonPositiveInteger.

Parameters:
value - The BigInteger value representing the value of the xs:nonPositiveInteger.
Returns:
The term representing the xs:nonPositiveInteger for the specified BigInteger value.

createNormalizedString

INormalizedString createNormalizedString(String string)
Create a new term representing a xs:normalizedString.

Parameters:
string - The string value representing the value of the xs:normalizedString.
Returns:
The term representing the xs:normalizedString for the specified string.

createPositiveInteger

IPositiveInteger createPositiveInteger(BigInteger value)

Create a new term representing a xs:positiveInteger.

Parameters:
value - The BigInteger value representing the value of the xs:positiveInteger.
Returns:
The term representing the xs:positiveInteger for the specified BigInteger value.

createShort

IShortTerm createShort(short value)
Create a new term representing a xs:short.

Parameters:
value - The integer value representing the value of the xs:short.
Returns:
The term representing the xs:short for the specified integer value.

createToken

IToken createToken(String token)
Create a new term representing a xs:token.

Parameters:
token - The string value representing the value of the xs:token.
Returns:
The term representing the xs:token for the specified string.

createUnsignedLong

IUnsignedLong createUnsignedLong(BigInteger value)

Create a new term representing a xs:unsignedLong.

Parameters:
value - The BigInteger value representing the value of the xs:unsignedLong.
Returns:
The term representing the xs:unsignedLong for the specified BigInteger value.

createUnsignedInt

IUnsignedInt createUnsignedInt(long value)

Create a new term representing a xs:unsignedInt.

Parameters:
value - The long value representing the value of the xs:unsignedInt.
Returns:
The term representing the xs:unsignedInt for the specified long value.

createUnsignedShort

IUnsignedShort createUnsignedShort(int value)

Create a new term representing a xs:unsignedShort.

Parameters:
value - The integer value representing the value of the xs:unsignedShort.
Returns:
The term representing the xs:unsignedShort for the specified integer value.

createUnsignedByte

IUnsignedByte createUnsignedByte(short value)

Create a new term representing a xs:unsignedByte.

Parameters:
value - The short value representing the value of the xs:unsignedByte.
Returns:
The term representing the xs:unsignedByte for the specified short value.

createInt

IIntTerm createInt(int value)

Create a new term representing a xs:int.

Parameters:
value - The integer value representing the value of the xs:int.
Returns:
The term representing the xs:int for the specified integer value.