Package net.sf.saxon.instruct
Class AttributeCreator
java.lang.Object
net.sf.saxon.expr.Expression
net.sf.saxon.instruct.Instruction
net.sf.saxon.instruct.SimpleNodeConstructor
net.sf.saxon.instruct.AttributeCreator
- All Implemented Interfaces:
Serializable
,SourceLocator
,LocationProvider
,SaxonLocator
,EvaluableItem
,SequenceIterable
,TailCallReturner
,InstructionInfo
,Locator
- Direct Known Subclasses:
ComputedAttribute
,FixedAttribute
Abstract class for fixed and computed attribute constructor expressions
- See Also:
-
Field Summary
Fields inherited from class net.sf.saxon.instruct.SimpleNodeConstructor
select
Fields inherited from class net.sf.saxon.expr.Expression
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Get the type annotation fingerprint to be used on the attribute eventint
Get the options to be used on the attribute eventReturn the required schema type of the attributeint
Get the validation action requestedvoid
setAnnotation
(int type) Set the type annotation fingerprint to be used on the attribute eventvoid
Indicate that the attribute value contains no special characters that might need escapingvoid
setOptions
(int options) Set the options to be used on the attribute eventvoid
Indicate that two attributes with the same name are not acceptable.void
setSchemaType
(SimpleType type) Set the required schema type of the attributevoid
setValidationAction
(int action) Set the validation action requiredMethods inherited from class net.sf.saxon.instruct.SimpleNodeConstructor
checkContent, computeCardinality, computeSpecialProperties, createsNewNodes, evaluateItem, evaluateNameCode, expandChildren, getSelect, iterate, iterateSubExpressions, localTypeCheck, optimize, promoteInst, replaceSubExpression, setSelect, simplify, typeCheck
Methods inherited from class net.sf.saxon.instruct.Instruction
assembleParams, assembleTunnelParams, dynamicError, evaluateAsString, getConstructType, getImplementationMethod, getInstructionNameCode, getItemType, getSourceLocator, isXSLT, process, processLeavingTail, promote
Methods inherited from class net.sf.saxon.expr.Expression
addToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, copy, display, doPromotion, dynamicError, effectiveBooleanValue, evaluatePendingUpdates, explain, explain, findParentOf, getCardinality, getColumnNumber, getColumnNumber, getContainer, getDependencies, getExecutable, getHostLanguage, getIntrinsicDependencies, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, isUpdatingExpression, iterateEvents, markTailFunctionCalls, resetLocalStaticProperties, setContainer, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation, toString, typeError
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 Details
-
AttributeCreator
public AttributeCreator()
-
-
Method Details
-
setSchemaType
Set the required schema type of the attribute- Parameters:
type
- the required schema type, if validation against a specific type is required
-
getSchemaType
Return the required schema type of the attribute- Returns:
- if validation against a schema type was requested, return the schema type (always a simple type). Otherwise, if validation against a specific type was not requested, return null
-
setValidationAction
public void setValidationAction(int action) Set the validation action required- Parameters:
action
- the validation action required, for example strict or lax
-
getValidationAction
public int getValidationAction()Get the validation action requested- Returns:
- the validation action, for example strict or lax
-
setOptions
public void setOptions(int options) Set the options to be used on the attribute event- Parameters:
options
-
-
setRejectDuplicates
public void setRejectDuplicates()Indicate that two attributes with the same name are not acceptable. (This option is set in XQuery, but not in XSLT) -
setNoSpecialChars
public void setNoSpecialChars()Indicate that the attribute value contains no special characters that might need escaping -
getOptions
public int getOptions()Get the options to be used on the attribute event- Returns:
- the option flags to be used
-
setAnnotation
public void setAnnotation(int type) Set the type annotation fingerprint to be used on the attribute event- Parameters:
type
- the fingerprint of the type annotation to be used
-
getAnnotation
public int getAnnotation()Get the type annotation fingerprint to be used on the attribute event- Returns:
- the fingerprint of the type annotation to be used
-