public class AttributeInfo
extends java.lang.Object
AttributeInfo
is not a node:
it has no identity and no navigation capability to the parent element or to any other nodes on the tree.Modifier and Type | Class and Description |
---|---|
static class |
AttributeInfo.Deleted
AttributeInfo.Deleted is a subclass used to mark a deleted attribute (in XQuery Update)
|
Constructor and Description |
---|
AttributeInfo(NodeName nodeName,
SimpleType type,
java.lang.String value,
Location location,
int properties)
Create an immutable AttributeInfo object
|
Modifier and Type | Method and Description |
---|---|
Location |
getLocation()
Get the location of the attribute, if known
|
NodeName |
getNodeName()
Get the name of the attribute
|
int |
getProperties()
Get properties of the attribute
|
SimpleType |
getType()
Get the type annotation of the attribute
|
java.lang.String |
getValue()
Get the string value of the attribute
|
StringValue |
getXdmStringValue()
Get the string value of the attribute as an XDM string value
|
boolean |
isId()
Ask whether this is an ID attribute
|
AttributeInfo |
withNodeName(NodeName newName) |
public AttributeInfo(NodeName nodeName, SimpleType type, java.lang.String value, Location location, int properties)
nodeName
- the name of the attributetype
- the type annotation of the attributevalue
- the string value of the attributelocation
- the location of the attribute within a source document (if known)properties
- additional bitwise properties of the attribute, enumerated in class
ReceiverOption
public NodeName getNodeName()
public SimpleType getType()
public java.lang.String getValue()
public StringValue getXdmStringValue()
public Location getLocation()
Loc.NONE
if unknown)public int getProperties()
ReceiverOption
public boolean isId()
public AttributeInfo withNodeName(NodeName newName)
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.