Top Description Fields Constructors Methods
com.sun.org.apache.xpath.internal.functions

public Class FuncId

extends FunctionOneArg
Class Inheritance
Imports
java.util.StringTokenizer, com.sun.org.apache.xml.internal.dtm.DTM, .DTMIterator, com.sun.org.apache.xml.internal.utils.StringVector, com.sun.org.apache.xpath.internal.NodeSetDTM, .XPathContext, com.sun.org.apache.xpath.internal.objects.XNodeSet, .XObject, com.sun.org.apache.xpath.internal.res.XPATHErrorResources

Execute the Id() function.

Field Summary

Modifier and TypeField and Description
pack-priv static final long
Inherited from com.sun.org.apache.xpath.internal.functions.FunctionOneArg:
m_arg0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public XObject

Returns:

A valid XObject.
execute
(XPathContext
The current execution context.
xctxt
)

Overrides com.sun.org.apache.xpath.internal.functions.Function.execute.

Execute the function.

private StringVector

Returns:

The usedrefs value.
getNodesByID
(XPathContext
The runtime XPath context.
xctxt
,
int
The document where the nodes are being looked for.
docContext
,
String
A space delimited list of ID references.
refval
,
StringVector
List of references for which nodes were found.
usedrefs
,
NodeSetDTM
Node set where the nodes will be added to.
nodeSet
,
boolean
true if there is another set of nodes to be looked for.
mayBeMore
)

Fill in a list with nodes that match a space delimited list if ID ID references.

Inherited from com.sun.org.apache.xpath.internal.functions.FunctionOneArg:
callArgVisitorscanTraverseOutsideSubtreecheckNumberArgsdeepEqualsfixupVariablesgetArg0getExpressionreportWrongNumberArgssetArgsetExpression

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides com.sun.org.apache.xpath.internal.functions.FunctionOneArg.serialVersionUID.

Constructor Detail

FuncIdback to summary
public FuncId()

Method Detail

executeback to summary
public XObject execute(XPathContext xctxt) throws TransformerException

Overrides com.sun.org.apache.xpath.internal.functions.Function.execute.

Execute the function. The function must return a valid object.

Parameters
xctxt:XPathContext

The current execution context.

Returns:XObject

A valid XObject.

Exceptions
TransformerException:

Doc from com.sun.org.apache.xpath.internal.Expression.execute.

if a runtime exception occurs.

getNodesByIDback to summary
private StringVector getNodesByID(XPathContext xctxt, int docContext, String refval, StringVector usedrefs, NodeSetDTM nodeSet, boolean mayBeMore)

Fill in a list with nodes that match a space delimited list if ID ID references.

Parameters
xctxt:XPathContext

The runtime XPath context.

docContext:int

The document where the nodes are being looked for.

refval:String

A space delimited list of ID references.

usedrefs:StringVector

List of references for which nodes were found.

nodeSet:NodeSetDTM

Node set where the nodes will be added to.

mayBeMore:boolean

true if there is another set of nodes to be looked for.

Returns:StringVector

The usedrefs value.