|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GxAtomBridge<A,S>
A part of the bridge that provides access to the system of atomic values.
This interface consists of several parts.
Method Summary | |
---|---|
A[] |
atomArray(int size)
Allocates an empty array of atoms. |
A |
baseAtomFromForeignAtom(A derivedAtom)
|
A |
castAs(A sourceAtom,
SmName<S> targetType)
Performs the casting of one atomic value to another. |
A |
castAs(A sourceAtom,
SmNativeType targetType)
Performs the casting of one atomic value to another. |
A |
compile(java.lang.String srcval,
SmName<S> dataType)
Compile the atomic value from the lexical representation. |
A |
compile(java.lang.String srcval,
SmName<S> dataType,
SmPrefixResolver<S> resolver)
|
A |
compile(java.lang.String srcval,
SmNativeType dataType)
|
A |
compile(java.lang.String srcval,
SmNativeType dataType,
SmPrefixResolver<S> resolver)
|
A |
createBase64Binary(byte[] base64BinaryValue)
|
A |
createBoolean(boolean value)
Returns an xs:boolean based upon the value. |
A |
createByte(byte byteValue)
Returns an xs:byte based upon the value. |
A |
createDate(int year,
int month,
int dayOfMonth,
int timezone)
Returns an xs:date atomic value. |
A |
createDateTime(int year,
int month,
int dayOfMonth,
int hour,
int minute,
int second,
int millis,
java.math.BigDecimal remainderSecond,
int offsetInMinutes)
Returns an xs:dateTime atomic value. |
A |
createDay(int dayOfMonth,
int timezone)
Returns an xs:gDay based upon the value. |
A |
createDayTimeDuration(java.math.BigDecimal seconds)
|
A |
createDecimal(java.math.BigDecimal decimalValue)
|
A |
createDouble(double value)
Returns an xs:double based upon the value. |
A |
createFloat(float floatValue)
Returns an xs:float based upon the value. |
A |
createHexBinary(byte[] hexBinaryValue)
Returns an xs:hexBinary based upon the value. |
A |
createInt(int intValue)
Returns an xs:int based upon the value. |
A |
createInteger(java.math.BigInteger value)
Returns an xs:integer based upon the value. |
A |
createLong(long longValue)
Returns an xs:long based upon the value. |
A |
createMonth(int month,
int timezone)
Returns an xs:gMonth based upon the value. |
A |
createMonthDay(int month,
int dayOfMonth,
int timezone)
Returns an xs:gMonthDay based upon the value. |
A |
createQName(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String prefix)
Constructs an expanded-QName. |
A |
createShort(short shortValue)
Returns an xs:short based upon the value. |
A |
createString(java.lang.String strval)
Creates an implementation xs:string from an String . |
A |
createTime(int hourOfDay,
int minute,
int second,
int millis,
java.math.BigDecimal fractionalSecond,
int timezone)
Creates an xs:time atomic value. |
A |
createUntypedAtomic(java.lang.String strval)
Creates an implementation xs:untypedAtomic from a String . |
A |
createURI(java.net.URI uri)
|
A |
createYear(int year,
int timezone)
Returns an xs:gYear based upon the value. |
A |
createYearMonth(int year,
int month,
int timezone)
Returns an xs:gYearMonth based upon the value. |
A |
createYearMonthDuration(int totalMonths)
|
byte[] |
getBase64Binary(A atom)
|
SmName<S> |
getBaseType(SmName<S> dataType)
|
boolean |
getBoolean(A atom)
|
A |
getBooleanFalse()
|
A |
getBooleanTrue()
|
byte |
getByte(A atom)
|
java.lang.String |
getC14NForm(A atom)
Returns the canonical string representation of the atomic value. |
SmName<S> |
getDataType(A atom)
Determine the specific XML data type of an atom managed by this manager. |
int |
getDayOfMonth(A gregorian)
|
java.math.BigDecimal |
getDecimal(A atom)
|
double |
getDouble(A atom)
|
int |
getDurationTotalMonths(A duration)
|
java.math.BigDecimal |
getDurationTotalSeconds(A duration)
|
float |
getFloat(A atom)
|
java.math.BigDecimal |
getFractionalSecondPart(A gregorian)
Returns the fractional part of the seconds component. |
int |
getGmtOffset(A gregorian)
Returns the offset, in minutes, from GMT. |
byte[] |
getHexBinary(A arg)
|
int |
getHourOfDay(A gregorian)
Returns the hours component of the Gregorian atomic value. |
int |
getInt(A atom)
|
java.math.BigInteger |
getInteger(A atom)
|
int |
getIntegralSecondPart(A gregorian)
Returns the integral part of the seconds component. |
long |
getLong(A atom)
|
int |
getMinute(A gregorian)
Returns the minutes component of the Gregorian atomic value. |
int |
getMonth(A gregorian)
|
GxNameBridge<S> |
getNameBridge()
Returns a GxNameBridge implementation consistent with this atom bridge. |
SmNativeType |
getNativeType(A atom)
Determine the nearest ancestor Built-in type of an atom managed by this manager. |
javax.xml.namespace.QName |
getNotation(A notation)
|
javax.xml.namespace.QName |
getQName(A atom)
Convert an atom known to be a the internal representation of an xs:QName to QName . |
java.math.BigDecimal |
getSecondsAsBigDecimal(A gregorian)
Returns the whole of the seconds value. |
short |
getShort(A atom)
|
java.lang.String |
getString(A atom)
Converts the atom, assumed to be an implementation xs:string, to get a string value. |
java.net.URI |
getURI(A atom)
|
java.lang.String |
getXPath10Form(A atom)
Returns the XPath 1.0 string representation of the atomic value. |
java.lang.String |
getXQuery10Form(A atom)
Returns the XQuery 1.0 string representation of the atomic value. |
int |
getYear(A gregorian)
|
boolean |
isForeignAtom(A atom)
Determines whether the specified atom is foreign (non native). |
boolean |
isWhiteSpace(A atom)
Determines whether the specified atom represents XML white space. |
A |
makeForeignAtom(SmName<S> atomType,
A baseAtom)
|
java.util.List<A> |
wrapAtom(A atom)
Promotes a single atom into an Iterable sequence containing the same single atom. |
Method Detail |
---|
A[] atomArray(int size)
size
- The size of the array of atoms.A baseAtomFromForeignAtom(A derivedAtom)
A castAs(A sourceAtom, SmName<S> targetType) throws GxAtomCastException
sourceAtom
- The source atomic value for the cast.targetType
- The target type.
null
if the input was null
.
GxAtomCastException
- if a cast does not exist between the two types or fails because of incompatible data.A castAs(A sourceAtom, SmNativeType targetType) throws GxAtomCastException
sourceAtom
- The source atomic value for the cast.targetType
- The target type.
null
if the input was null
.
GxAtomCastException
- if a cast does not exist between the two types or fails because of incompatible data.A compile(java.lang.String srcval, SmName<S> dataType) throws GxAtomCastException
srcval
- The lexical representation of the atomic value.dataType
- The specific data type
GxAtomCastException
- If the lexical representation is not valid for the atomic value type.A compile(java.lang.String srcval, SmName<S> dataType, SmPrefixResolver<S> resolver) throws GxAtomCastException
GxAtomCastException
A compile(java.lang.String srcval, SmNativeType dataType) throws GxAtomCastException
GxAtomCastException
A compile(java.lang.String srcval, SmNativeType dataType, SmPrefixResolver<S> resolver) throws GxAtomCastException
GxAtomCastException
A createBase64Binary(byte[] base64BinaryValue)
A createBoolean(boolean value)
A createByte(byte byteValue)
A createDate(int year, int month, int dayOfMonth, int timezone)
A createDateTime(int year, int month, int dayOfMonth, int hour, int minute, int second, int millis, java.math.BigDecimal remainderSecond, int offsetInMinutes)
A createDay(int dayOfMonth, int timezone)
A createDayTimeDuration(java.math.BigDecimal seconds)
A createDecimal(java.math.BigDecimal decimalValue)
A createDouble(double value)
A createFloat(float floatValue)
A createHexBinary(byte[] hexBinaryValue)
A createInt(int intValue)
A createInteger(java.math.BigInteger value)
A createLong(long longValue)
A createMonth(int month, int timezone)
A createMonthDay(int month, int dayOfMonth, int timezone)
A createQName(java.lang.String namespaceURI, java.lang.String localName, java.lang.String prefix)
namespaceURI
- The namespace for the expanded-QName.localName
- The local-name part of the expanded-QName.prefix
- The prefix of the expanded-QName. A createShort(short shortValue)
A createString(java.lang.String strval)
String
. null
if the argument is null
.
strval
- The String
value of the created implementation xs:string.A createTime(int hourOfDay, int minute, int second, int millis, java.math.BigDecimal fractionalSecond, int timezone)
A createUntypedAtomic(java.lang.String strval)
String
. null
if the argument is null
.
strval
- The String
value of the created implementation xs:untypedAtomic.A createURI(java.net.URI uri)
A createYear(int year, int timezone)
A createYearMonth(int year, int month, int timezone)
A createYearMonthDuration(int totalMonths)
byte[] getBase64Binary(A atom)
SmName<S> getBaseType(SmName<S> dataType)
boolean getBoolean(A atom)
A getBooleanFalse()
A getBooleanTrue()
byte getByte(A atom)
java.lang.String getC14NForm(A atom)
atom
- The atom to be serialized.
SmName<S> getDataType(A atom)
atom
- The atomic value for which the data-type is required.int getDayOfMonth(A gregorian)
java.math.BigDecimal getDecimal(A atom)
double getDouble(A atom)
int getDurationTotalMonths(A duration)
java.math.BigDecimal getDurationTotalSeconds(A duration)
float getFloat(A atom)
java.math.BigDecimal getFractionalSecondPart(A gregorian)
zero
.
gregorian
- The gregorian atomic value.int getGmtOffset(A gregorian)
javax.xml.datatype.DatatypeConstants.FIELD_UNDEFINED
if the Gregorian value has no timezone.
gregorian
- The gregorian atomic value.byte[] getHexBinary(A arg)
int getHourOfDay(A gregorian)
0
.
gregorian
- The gregorian atomic value.int getInt(A atom)
java.math.BigInteger getInteger(A atom)
int getIntegralSecondPart(A gregorian)
0
.
gregorian
- The gregorian atomic value.long getLong(A atom)
int getMinute(A gregorian)
0
.
gregorian
- The gregorian atomic value.int getMonth(A gregorian)
GxNameBridge<S> getNameBridge()
GxNameBridge
implementation consistent with this atom bridge.
SmNativeType getNativeType(A atom)
atom
- The atomic value for which the data-type is required.javax.xml.namespace.QName getNotation(A notation)
javax.xml.namespace.QName getQName(A atom)
QName
. null
, this function returns null
.
atom
- The internal representation; may be null
.java.math.BigDecimal getSecondsAsBigDecimal(A gregorian)
null
.
gregorian
- The gregorian atomic value.short getShort(A atom)
java.lang.String getString(A atom)
null
if the argument is null
.
atom
- The atom that is assumed to represent an xs:string.java.net.URI getURI(A atom)
java.lang.String getXPath10Form(A atom)
atom
- The atom to be serialized.
java.lang.String getXQuery10Form(A atom)
atom
- The atom to be serialized.
int getYear(A gregorian)
boolean isForeignAtom(A atom)
atom
- The atomic value to be tested.
true
if the atom is foreign, otherwise false
.boolean isWhiteSpace(A atom)
atom
- The atomic value to be tested for being entirely white space.A makeForeignAtom(SmName<S> atomType, A baseAtom)
java.util.List<A> wrapAtom(A atom)
Iterable
sequence containing the same single atom. Iterable
on
their atoms to avoid physically wrapping the atom.
atom
- The atom to be wrapped. May be null
. If null
is passed as an argument, the
implementation must return an empty Iterable
. This provides consistent semantics for
the
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |