|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.Expression net.sf.saxon.expr.instruct.Instruction net.sf.saxon.expr.instruct.SimpleNodeConstructor net.sf.saxon.expr.instruct.AttributeCreator
public abstract class AttributeCreator
Abstract class for fixed and computed attribute constructor expressions
Field Summary |
---|
Fields inherited from class net.sf.saxon.expr.instruct.SimpleNodeConstructor |
---|
select |
Fields inherited from class net.sf.saxon.expr.Expression |
---|
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, PUSH_SELECTION, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, WATCH_METHOD |
Constructor Summary | |
---|---|
AttributeCreator()
|
Method Summary | |
---|---|
int |
computeSpecialProperties()
Get the static properties of this expression (other than its type). |
int |
getOptions()
Get the options to be used on the attribute event |
SimpleType |
getSchemaType()
Return the required schema type of the attribute |
int |
getValidationAction()
Get the validation action requested |
void |
processValue(CharSequence value,
XPathContext context)
Process the value of the node, to create the new node. |
void |
setNoSpecialChars()
Indicate that the attribute value contains no special characters that might need escaping |
void |
setOptions(int options)
Set the options to be used on the attribute event |
void |
setRejectDuplicates()
Indicate that two attributes with the same name are not acceptable. |
void |
setSchemaType(SimpleType type)
Set the required schema type of the attribute |
void |
setValidationAction(int action)
Set the validation action required |
Methods inherited from class net.sf.saxon.expr.instruct.SimpleNodeConstructor |
---|
checkContent, computeCardinality, createsNewNodes, evaluateItem, evaluateNodeName, getContentExpression, iterate, iterateSubExpressions, localTypeCheck, optimize, processLeavingTail, promoteInst, replaceSubExpression, setSelect, simplify, typeCheck |
Methods inherited from class net.sf.saxon.expr.instruct.Instruction |
---|
assembleParams, assembleTunnelParams, dynamicError, evaluateAsString, getConstructType, getExpressionName, getImplementationMethod, getInstructionName, getInstructionNameCode, getItemType, getIteratorFromProcessMethod, getSourceLocator, isXSLT, process, promote |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.xml.transform.SourceLocator |
---|
getColumnNumber, getLineNumber, getPublicId, getSystemId |
Constructor Detail |
---|
public AttributeCreator()
Method Detail |
---|
public void setSchemaType(SimpleType type)
type
- the required schema type, if validation against a specific type is required,
or null if no validation is requiredpublic SimpleType getSchemaType()
getSchemaType
in interface ValidatingInstruction
public void setValidationAction(int action)
action
- the validation action required, for example strict or laxpublic int getValidationAction()
getValidationAction
in interface ValidatingInstruction
public void setOptions(int options)
options
- Options to be used. The only option currently defined is
ReceiverOptions.REJECT_DUPLICATES
, which controls whether or not it is an error
to create two attributes with the same name for the same element. (This is an error in XQuery
but not in XSLT).public void setRejectDuplicates()
public void setNoSpecialChars()
public int getOptions()
public int computeSpecialProperties()
computeSpecialProperties
in class SimpleNodeConstructor
public final void processValue(CharSequence value, XPathContext context) throws XPathException
processValue
in class SimpleNodeConstructor
value
- the string value of the new nodecontext
- the dynamic evaluation context
XPathException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |