public abstract class ElementWithContent
extends ExtensionInstruction
Modifier and Type | Field and Description |
---|---|
protected Map<String,Expression> |
attribs |
protected int |
sequence |
defaultCollationName, defaultXPathNamespace, extensionNamespaces, REPORT_ALWAYS, REPORT_IF_INSTANTIATED, REPORT_UNLESS_FALLBACK_AVAILABLE, REPORT_UNLESS_FORWARDS_COMPATIBLE, reportingCircumstances, staticContext, validationError, version
Constructor and Description |
---|
ElementWithContent() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(NodeImpl arg0,
int arg1) |
void |
compact(int arg0) |
protected Expression |
compileContent(Executable exec)
Call during compile() to get the content expression.
|
AxisIterator |
enumerateChildren(NodeTest arg0) |
NodeInfo |
getFirstChild() |
NodeInfo |
getLastChild() |
protected NodeImpl |
getNthChild(int arg0) |
protected long |
getSequenceNumber() |
String |
getStringValue() |
CharSequence |
getStringValueCS() |
boolean |
hasChildNodes() |
boolean |
mayContainSequenceConstructor()
Determine whether this type of element is allowed to contain a template-body
|
protected void |
parseAttributes(String[] mandatoryAtts,
String[] optionalAtts)
Parse mandatory and optional attributes during prepareAttributes() call.
|
abstract void |
prepareAttributes()
Derived classes need to come up with their mandatory and optional
attributes and call parseAttributes() above.
|
void |
useChildrenArray(NodeImpl[] arg0) |
allocateLocationId, allocatePatternSlots, allocateSlots, allocateSlots, backwardsCompatibleModeIsEnabled, bindVariable, checkEmpty, checkSortComesFirst, checkTopLevel, checkUnknownAttribute, checkWithinTemplate, compile, compileError, compileError, compileError, compileSequenceConstructor, compileWarning, definesExcludedNamespace, definesExtensionElement, fallbackProcessing, fixupReferences, forwardsCompatibleModeIsEnabled, getAttributeSets, getAttributeValue, getCommonChildItemType, getConstructType, getContainingSlotManager, getContainingStylesheet, getDefaultCollationName, getDefaultXPathNamespace, getExecutable, getHostLanguage, getLastChildInstruction, getLineNumber, getLineNumber, getLocationProvider, getNamespaceResolver, getObjectFingerprint, getObjectNameCode, getPrecedence, getPreparedStylesheet, getPrincipalStylesheet, getProperties, getProperty, getReturnedItemType, getSchemaType, getStaticContext, getStylesheetFunction, getSystemId, getTargetNamePool, getTypeAnnotation, getVersion, getWithParamInstructions, isExcludedNamespace, isExplaining, isExtensionNamespace, isPermittedChild, issueWarning, issueWarning, isTopLevel, makeAttributeValueTemplate, makeExpression, makeNameCode, makeNamespaceContext, makePattern, makeSequenceType, makeSortKeys, makeTraceInstruction, markTailCalls, postValidate, processAllAttributes, processAttributes, processDefaultCollationAttribute, processDefaultXPathNamespaceAttribute, processExcludedNamespaces, processExtensionElementAttribute, processVersionAttribute, replaceSubExpression, reportAbsence, setLineNumber, setObjectNameCode, setValidationError, substituteFor, typeCheck, typeCheck, undeclaredNamespaceError, validateChildren, validateSubtree
copy, getAttributeList, getAttributeValue, getDeclaredNamespaces, getInScopeNamespaceCodes, getPrefixForURI, getURICodeForPrefix, getURIForPrefix, initialise, iteratePrefixes, sendNamespaceDeclarations, setNamespaceDeclarations
generateId, getBaseURI, getDocumentRoot, getNameCode, getNodeKind, getRoot, getSystemId, setNameCode, setSystemId
atomize, compareOrder, equals, getColumnNumber, getConfiguration, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getTypeAnnotation, getTypedValue, getURI, hashCode, isSameNodeInfo, iterateAxis, iterateAxis
protected void parseAttributes(String[] mandatoryAtts, String[] optionalAtts) throws XPathException
XPathException
public abstract void prepareAttributes() throws XPathException
prepareAttributes
in class StyleElement
XPathException
protected Expression compileContent(Executable exec) throws XPathException
XPathException
public boolean mayContainSequenceConstructor()
mayContainSequenceConstructor
in class StyleElement
protected final long getSequenceNumber()
getSequenceNumber
in class NodeImpl
public final boolean hasChildNodes()
hasChildNodes
in interface NodeInfo
hasChildNodes
in class NodeImpl
public final AxisIterator enumerateChildren(NodeTest arg0)
public final NodeInfo getFirstChild()
getFirstChild
in class NodeImpl
public final NodeInfo getLastChild()
getLastChild
in class NodeImpl
protected final NodeImpl getNthChild(int arg0)
public String getStringValue()
public CharSequence getStringValueCS()
getStringValueCS
in interface Item
getStringValueCS
in interface ValueRepresentation
getStringValueCS
in class NodeImpl
public void useChildrenArray(NodeImpl[] arg0)
public void addChild(NodeImpl arg0, int arg1)
public void compact(int arg0)