|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.terms.concrete.ConcreteFactory
public class ConcreteFactory
Factory to create concrete terms.
| 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. |
IUnsignedLong |
createUnsignedLong(long value)
|
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. |
static IConcreteFactory |
getInstance()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static IConcreteFactory getInstance()
public IBase64Binary createBase64Binary(String s)
IConcreteFactory
createBase64Binary in interface IConcreteFactorys - The String representing a Base64Binary data type.
public IBooleanTerm createBoolean(boolean b)
IConcreteFactory
createBoolean in interface IConcreteFactoryb - The value of the term
public IBooleanTerm createBoolean(String value)
IConcreteFactory
createBoolean in interface IConcreteFactoryvalue - The string value, which must be either 'true' or '1' for
true, or 'false' or '0' for false.
public IDateTerm createDate(int year,
int month,
int day)
IConcreteFactory
createDate in interface IConcreteFactoryyear - the yearmonth - the mont (1-12)day - the day
public IDateTerm createDate(int year,
int month,
int day,
int tzHour,
int tzMinute)
IConcreteFactory
createDate in interface IConcreteFactoryyear - the yearmonth - the mont (1-12)day - the daytzHour - the timezone hours (relative to GMT)tzMinute - the timezone minutes (relative to GMT)
public IDateTime createDateTime(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
int tzHour,
int tzMinute)
IConcreteFactory
createDateTime in interface IConcreteFactoryyear - the yearsmonth - the months (1-12)day - day of the monthhour - the hoursminute - the minutessecond - the secondsmillisecond - the millisecondstzHour - the timezone hours (relative to GMT)tzMinute - the timezone minutes (relative to GMT)
public IDateTime createDateTime(int year,
int month,
int day,
int hour,
int minute,
double second,
int tzHour,
int tzMinute)
IConcreteFactory
createDateTime in interface IConcreteFactoryyear - the yearsmonth - the months (1-12)day - day of the monthhour - the hoursminute - the minutessecond - the decimal secondstzHour - the timezone hours (relative to GMT)tzMinute - the timezone minutes (relative to GMT)
public ITime createTime(int hour,
int minute,
int second,
int millisecond,
int tzHour,
int tzMinute)
IConcreteFactory
createTime in interface IConcreteFactoryhour - the hoursminute - the minutessecond - the secondsmillisecond - the millisecondstzHour - the timezone hours (relative to GMT)tzMinute - the timezone minutes (relative to GMT)
public ITime createTime(int hour,
int minute,
double second,
int tzHour,
int tzMinute)
IConcreteFactory
createTime in interface IConcreteFactoryhour - the hoursminute - the minutessecond - the decimal secondstzHour - the timezone hours (relative to GMT)tzMinute - the timezone minutes (relative to GMT)public IDecimalTerm createDecimal(double d)
IConcreteFactory
createDecimal in interface IConcreteFactoryd - The decimal value
public IDecimalTerm createDecimal(BigDecimal value)
IConcreteFactory
createDecimal in interface IConcreteFactoryvalue - The decimal value.
public IDoubleTerm createDouble(double d)
IConcreteFactory
createDouble in interface IConcreteFactoryd - The double values
public IDuration createDuration(boolean positive,
int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond)
IConcreteFactory
createDuration in interface IConcreteFactorypositive - trueif the duration is positive, otherwise
falseyear - the yearspanmonth - the monthspa (1-12)day - the dayspanhour - the hourspanminute - the minutespansecond - the secondspanmillisecond - the millisecondspan
public IDuration createDuration(boolean positive,
int year,
int month,
int day,
int hour,
int minute,
double second)
IConcreteFactory
createDuration in interface IConcreteFactorypositive - true is a positive duration
public IDuration createDuration(long millis)
IConcreteFactory
createDuration in interface IConcreteFactorymillis - the millisecond spanpublic IFloatTerm createFloat(float f)
IConcreteFactory
createFloat in interface IConcreteFactoryf - The float value
public IGDay createGDay(int day)
IConcreteFactory
createGDay in interface IConcreteFactoryday - The day value
public IGMonthDay createGMonthDay(int month,
int day)
IConcreteFactory
createGMonthDay in interface IConcreteFactorymonth - The month valueday - The day value
public IGMonth createGMonth(int month)
IConcreteFactory
createGMonth in interface IConcreteFactorymonth - The month value
public IGYearMonth createGYearMonth(int year,
int month)
IConcreteFactory
createGYearMonth in interface IConcreteFactoryyear - The year valuemonth - The month value
public IGYear createGYear(int year)
IConcreteFactory
createGYear in interface IConcreteFactoryyear - The year value
public IHexBinary createHexBinary(String s)
IConcreteFactory
createHexBinary in interface IConcreteFactorys - The hex binary value
public IIntegerTerm createInteger(int i)
IConcreteFactoryCreate a new term representing a xs:integer.
createInteger in interface IConcreteFactoryi - The integer value.
public IIntegerTerm createInteger(BigInteger i)
IConcreteFactoryCreate a new term representing a xs:integer.
createInteger in interface IConcreteFactoryi - The BigInteger value.
public IIri createIri(String s)
IConcreteFactory
createIri in interface IConcreteFactorys - The IRI value
public ISqName createSqName(String s)
IConcreteFactory
createSqName in interface IConcreteFactorys - The SQName value
public ISqName createSqName(IIri iri,
String name)
IConcreteFactory
createSqName in interface IConcreteFactoryiri - The IRI value
public IPlainLiteral createPlainLiteral(String string,
String language)
IConcreteFactory
createPlainLiteral in interface IConcreteFactorystring - The string.language - The language tag.
public IPlainLiteral createPlainLiteral(String string)
IConcreteFactory
createPlainLiteral in interface IConcreteFactorystring - A string of the form "text@lang", where "lang" is the
language of the text. Must contain at least one "@" character.
public IXMLLiteral createXMLLiteral(String string)
IConcreteFactory
createXMLLiteral in interface IConcreteFactorystring - A string representing a XML element.
public IXMLLiteral createXMLLiteral(String string,
String lang)
IConcreteFactory
createXMLLiteral in interface IConcreteFactorystring - A string representing a XML element.lang - The language of the XML element.
public IYearMonthDuration createYearMonthDuration(boolean positive,
int year,
int month)
IConcreteFactory
createYearMonthDuration in interface IConcreteFactorypositive - True if this term represents a positive duration, false
otherwise.year - The year.month - The month.
public IDayTimeDuration createDayTimeDuration(boolean positive,
int day,
int hour,
int minute,
double second)
IConcreteFactory
createDayTimeDuration in interface IConcreteFactorypositive - True if this term represents a positive duration, false
otherwise.day - The day.hour - The hour.minute - The minute.second - The second.
public IDayTimeDuration createDayTimeDuration(boolean positive,
int day,
int hour,
int minute,
int second,
int millisecond)
IConcreteFactory
createDayTimeDuration in interface IConcreteFactorypositive - 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.
public IAnyURI createAnyURI(URI uri)
IConcreteFactory
createAnyURI in interface IConcreteFactoryuri - The URI representing the value of the xs:anyURI.
public IByteTerm createByte(byte value)
IConcreteFactory
createByte in interface IConcreteFactoryvalue - The byte value.
public IENTITY createEntity(String entity)
IConcreteFactory
createEntity in interface IConcreteFactoryentity - The string representing the value of the xs:ENTITY.
public IID createID(String id)
IConcreteFactory
createID in interface IConcreteFactoryid - The string representing the value of the xs:ID.
public IIDREF createIDREF(String idRef)
IConcreteFactory
createIDREF in interface IConcreteFactoryidRef - The string representing the value of the xs:IDREF.
public ILanguage createLanguage(String language)
IConcreteFactory
createLanguage in interface IConcreteFactorylanguage - The string representing the value of the xs:language.
public ILongTerm createLong(long value)
IConcreteFactoryCreate a new term representing a xs:long.
createLong in interface IConcreteFactoryvalue - The integer value representing the value of the xs:long.
public INCName createNCName(String name)
IConcreteFactory
createNCName in interface IConcreteFactoryname - The string value representing the value of the xs:NCName.
public INMTOKEN createNMTOKEN(String token)
IConcreteFactory
createNMTOKEN in interface IConcreteFactorytoken - The string value representing the value of the xs:NMTOKEN.
public IName createName(String name)
IConcreteFactory
createName in interface IConcreteFactoryname - The string value representing the value of the xs:Name.
public INegativeInteger createNegativeInteger(BigInteger value)
IConcreteFactoryCreate a new term representing a xs:negativeInteger.
createNegativeInteger in interface IConcreteFactoryvalue - The BigInteger value representing the value of the
xs:negativeInteger.
public INonNegativeInteger createNonNegativeInteger(BigInteger value)
IConcreteFactoryCreate a new term representing a xs:nonNegativeInteger.
createNonNegativeInteger in interface IConcreteFactoryvalue - The BigInteger value representing the value of the
xs:nonNegativeInteger.
public INonPositiveInteger createNonPositiveInteger(BigInteger value)
IConcreteFactoryCreate a new term representing a xs:nonPositiveInteger.
createNonPositiveInteger in interface IConcreteFactoryvalue - The BigInteger value representing the value of the
xs:nonPositiveInteger.
public INormalizedString createNormalizedString(String string)
IConcreteFactory
createNormalizedString in interface IConcreteFactorystring - The string value representing the value of the
xs:normalizedString.
public IPositiveInteger createPositiveInteger(BigInteger value)
IConcreteFactoryCreate a new term representing a xs:positiveInteger.
createPositiveInteger in interface IConcreteFactoryvalue - The BigInteger value representing the value of the
xs:positiveInteger.
public IShortTerm createShort(short value)
IConcreteFactory
createShort in interface IConcreteFactoryvalue - The integer value representing the value of the xs:short.
public IToken createToken(String token)
IConcreteFactory
createToken in interface IConcreteFactorytoken - The string value representing the value of the xs:token.
public IUnsignedByte createUnsignedByte(short value)
IConcreteFactoryCreate a new term representing a xs:unsignedByte.
createUnsignedByte in interface IConcreteFactoryvalue - The short value representing the value of the
xs:unsignedByte.
public IUnsignedInt createUnsignedInt(long value)
IConcreteFactoryCreate a new term representing a xs:unsignedInt.
createUnsignedInt in interface IConcreteFactoryvalue - The long value representing the value of the xs:unsignedInt.
public IUnsignedLong createUnsignedLong(long value)
public IUnsignedLong createUnsignedLong(BigInteger value)
IConcreteFactoryCreate a new term representing a xs:unsignedLong.
createUnsignedLong in interface IConcreteFactoryvalue - The BigInteger value representing the value of the
xs:unsignedLong.
public IUnsignedShort createUnsignedShort(int value)
IConcreteFactoryCreate a new term representing a xs:unsignedShort.
createUnsignedShort in interface IConcreteFactoryvalue - The integer value representing the value of the
xs:unsignedShort.
public IIntTerm createInt(int value)
IConcreteFactoryCreate a new term representing a xs:int.
createInt in interface IConcreteFactoryvalue - The integer value representing the value of the xs:int.
public IDateTime createDateTimeStamp(int year,
int month,
int day,
int hour,
int minute,
double second,
int tzHour,
int tzMinute)
IConcreteFactory
createDateTimeStamp in interface IConcreteFactoryyear - 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.
public INOTATION createNOTATION(String namespaceName,
String localPart)
IConcreteFactory
createNOTATION in interface IConcreteFactorynamespaceName - The namespace name of the xs:NOTATION.localPart - The local part of the xs:NOTATION. May be
null.
public IQName createQName(String namespaceName,
String localPart)
IConcreteFactory
createQName in interface IConcreteFactorynamespaceName - The namespace name of the xs:QName. May be
null.localPart - The local part of the xs:QName.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||