Package org.rumbledb.types
Class XmlNodeItemType
java.lang.Object
org.rumbledb.types.XmlNodeItemType
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable,Serializable,ItemType
Class representing a concrete XML node item type at depth 2 in the type hierarchy.
This class now covers the remaining concrete XML node kinds after dedicated implementations
for element(), attribute(), document-node(), and processing-instruction():
comment(), text(), namespace-node().
All concrete node types share node() as their base type at depth 1.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests for itemType equality.getName()intbooleanhasName()Tests for QName.booleanisCompatibleWithDataFrames(RumbleRuntimeConfiguration configuration) Checks compatibility with DataFrames.booleanbooleanvoidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) toString()voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.rumbledb.types.ItemType
canBePromotedTo, findLeastCommonSuperTypeLax, findLeastCommonSuperTypeWith, getArrayContentFacet, getBoundedFacet, getCardinalityFacet, getCastingPrimitiveType, getClosedFacet, getConstraintsFacet, getEnumerationFacet, getExplicitTimezoneFacet, getFractionDigitsFacet, getIdentifierString, getLengthFacet, getLexicalSpacePatterns, getMapKeyItemType, getMapValueSequenceType, getMaxExclusiveFacet, getMaxInclusiveFacet, getMaxLengthFacet, getMemberSequenceType, getMinExclusiveFacet, getMinInclusiveFacet, getMinLengthFacet, getNumericFacet, getObjectContentFacet, getOrderedFacet, getPatternFacet, getPrimitiveType, getSignature, getSparkSQLType, getTotalDigitsFacet, getTypes, getWhitespaceFacet, isArrayItemType, isAtomicItemType, isCastingPrimitive, isEqualTo, isFunctionItemType, isJsonItemType, isMapItemType, isNumeric, isObjectItemType, isPrimitive, isStaticallyCastableAs, isSubtypeOf, isTopmostItemType, isUnionType, isUserDefined, isXQueryArrayItemType, resolve, resolve
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
writein interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
readin interfacecom.esotericsoftware.kryo.KryoSerializable
-
equals
Description copied from interface:ItemTypeTests for itemType equality. -
hasName
public boolean hasName()Description copied from interface:ItemTypeTests for QName. -
getName
-
isNodeItemType
public boolean isNodeItemType()- Specified by:
isNodeItemTypein interfaceItemType- Returns:
- true if [this] is a node item type (node() or any of its 7 concrete subtypes).
-
getTypeTreeDepth
public int getTypeTreeDepth()- Specified by:
getTypeTreeDepthin interfaceItemType- Returns:
- an int representing the depth of the item type in the type tree ('item' is the root with depth 0)
-
getBaseType
- Specified by:
getBaseTypein interfaceItemType- Returns:
- the base type for a type, return null for the topmost item type
-
getAllowedFacets
- Specified by:
getAllowedFacetsin interfaceItemType- Returns:
- a set containing the allowed facets for restricting the type
-
toString
-
isResolved
public boolean isResolved()- Specified by:
isResolvedin interfaceItemType
-
isCompatibleWithDataFrames
Description copied from interface:ItemTypeChecks compatibility with DataFrames.- Specified by:
isCompatibleWithDataFramesin interfaceItemType- Returns:
- true if compatible with DataFrames and false otherwise.
-