Package org.rumbledb.types
Class AttributeNodeItemType
java.lang.Object
org.rumbledb.types.AbstractItemType
org.rumbledb.types.AttributeNodeItemType
- All Implemented Interfaces:
Serializable,ItemType
Class representing attribute() and attribute(QName) item types.
Wildcard attribute() is represented with no node-name restriction.
attribute(QName) is represented with a concrete node-name restriction.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeNodeItemType(Name nodeName) AttributeNodeItemType(Name nodeName, Name schemaTypeName, List<Name> schemaTypeHierarchy) AttributeNodeItemType(Name nodeName, Name schemaTypeName, List<Name> schemaTypeHierarchy, List<Name> schemaTypeAlternatives) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectgetName()intbooleanhasName()Tests for QName.booleanisCompatibleWithDataFrames(RumbleConfiguration configuration) Checks compatibility with DataFrames.booleanbooleanbooleanisSubtypeOf(ItemType superType) toString()Methods inherited from class org.rumbledb.types.AbstractItemType
equalityKeyOf, equals, hashCode, namedTypeKey, structuralTypeKeyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.rumbledb.types.ItemType
canBeNull, canBePromotedTo, findLeastCommonSuperTypeLax, getArrayContentFacet, getBoundedFacet, getCardinalityFacet, getCastingPrimitiveType, getClosedFacet, getConstraintsFacet, getEnumerationFacet, getExplicitTimezoneFacet, getFractionDigitsFacet, getIdentifierString, getLengthFacet, getLexicalSpacePatterns, getMapKeyItemType, getMapValueSequenceType, getMaxExclusiveFacet, getMaxInclusiveFacet, getMaxLengthFacet, getMemberSequenceType, getMinExclusiveFacet, getMinInclusiveFacet, getMinLengthFacet, getNumericFacet, getObjectContentFacet, getObjectContentFacet, getObjectContentFacetAsUnorderedMap, getObjectKeysFacet, getOrderedFacet, getPatternFacet, getPrimitiveType, getSignature, getSingleNullableType, getSparkSQLType, getTotalDigitsFacet, getTypes, getWhitespaceFacet, isArrayItemType, isAtomicItemType, isCastingPrimitive, isEqualTo, isFunctionItemType, isJsonItemType, isMapItemType, isNumeric, isObjectItemType, isPrimitive, isStaticallyCastableAs, isTopmostItemType, isUnionType, isUserDefined, isXQueryArrayItemType, resolve, resolve
-
Constructor Details
-
AttributeNodeItemType
public AttributeNodeItemType() -
AttributeNodeItemType
-
AttributeNodeItemType
-
AttributeNodeItemType
-
-
Method Details
-
equalityKey
- Overrides:
equalityKeyin classAbstractItemType
-
hasName
public boolean hasName()Description copied from interface:ItemTypeTests for QName.- Returns:
- true if [this] item type has a QName
-
getName
- Returns:
- the itemtype QName if available
-
isNodeItemType
public boolean isNodeItemType()- Returns:
- true if [this] is a node item type (node() or any of its 7 concrete subtypes).
-
isSubtypeOf
- Parameters:
superType- another item type- Returns:
- true if [this] is a subtype of [superType], any type is considered a subtype of itself. If [this] has a name, then this is determined strictly based on the hierarchy. If [this] does not have a name, then this is determined based on facets.
-
findLeastCommonSuperTypeWith
- Parameters:
other- another item type- Returns:
- the common supertype between [this] and [other], that would be the LCA in the item type tree of [this] and [other] (does not take into account union types as common ancestor, but only the type tree)
-
getTypeTreeDepth
public int getTypeTreeDepth()- Returns:
- an int representing the depth of the item type in the type tree ('item' is the root with depth 0)
-
getBaseType
- Returns:
- the base type for a type, return null for the topmost item type
-
getAllowedFacets
- Returns:
- a set containing the allowed facets for restricting the type
-
toString
-
isResolved
public boolean isResolved() -
isCompatibleWithDataFrames
Description copied from interface:ItemTypeChecks compatibility with DataFrames.- Returns:
- true if compatible with DataFrames and false otherwise.
-