Class XSAttributeDecl
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.XSAttributeDecl
-
- All Implemented Interfaces:
XSAttributeDeclaration,XSObject
public class XSAttributeDecl extends Object implements XSAttributeDeclaration
The XML representation for an attribute declaration schema component is an <attribute> element information item- Version:
- $Id$
- Author:
- Elena Litani, IBM, Sandy Gao, IBM
-
-
Field Summary
Fields Modifier and Type Field Description QNamefUnresolvedTypeNamestatic shortSCOPE_ABSENTstatic shortSCOPE_GLOBALstatic shortSCOPE_LOCAL
-
Constructor Summary
Constructors Constructor Description XSAttributeDecl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetActualVC()Value Constraint: Binding specific actual constraint value ornullif the value is in error or there is no value constraint.shortgetActualVCType()The actual constraint value built-in datatype, e.g.XSAnnotationgetAnnotation()Optional.XSObjectListgetAnnotations()Optional.shortgetConstraintType()Value constraint: one of default, fixed.StringgetConstraintValue()Value constraint: The actual value (with respect to the {type definition}) Should we return Object instead of DOMString?XSComplexTypeDefinitiongetEnclosingCTDefinition()Locally scoped declarations are available for use only within the complex type definition identified by thescopeproperty.ShortListgetItemValueTypes()In the case the actual constraint value represents a list, i.e. theactualValueTypeisLIST_DT, the returned array consists of one type kind which represents the itemType.StringgetName()Thenameof thisXSObjectdepending on theXSObjecttype.StringgetNamespace()The namespace URI of this node, ornullif it is unspecified.XSNamespaceItemgetNamespaceItem()A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; ornullotherwise.shortgetScope()Optional.shortgetType()Get the type of the object, i.e ELEMENT_DECLARATION.XSSimpleTypeDefinitiongetTypeDefinition()A simple type definitionValidatedInfogetValInfo()XSValuegetValueConstraintValue()The actual value of the default or fixed value constraint.voidreset()voidsetValues(String name, String targetNamespace, XSSimpleType simpleType, short constraintType, short scope, ValidatedInfo valInfo, XSComplexTypeDecl enclosingCT, XSObjectList annotations)
-
-
-
Field Detail
-
SCOPE_ABSENT
public static final short SCOPE_ABSENT
- See Also:
- Constant Field Values
-
SCOPE_GLOBAL
public static final short SCOPE_GLOBAL
- See Also:
- Constant Field Values
-
SCOPE_LOCAL
public static final short SCOPE_LOCAL
- See Also:
- Constant Field Values
-
fUnresolvedTypeName
public QName fUnresolvedTypeName
-
-
Method Detail
-
setValues
public void setValues(String name, String targetNamespace, XSSimpleType simpleType, short constraintType, short scope, ValidatedInfo valInfo, XSComplexTypeDecl enclosingCT, XSObjectList annotations)
-
reset
public void reset()
-
getType
public short getType()
Get the type of the object, i.e ELEMENT_DECLARATION.
-
getName
public String getName()
Thenameof thisXSObjectdepending on theXSObjecttype.
-
getNamespace
public String getNamespace()
The namespace URI of this node, ornullif it is unspecified. defines how a namespace URI is attached to schema components.- Specified by:
getNamespacein interfaceXSObject
-
getTypeDefinition
public XSSimpleTypeDefinition getTypeDefinition()
A simple type definition- Specified by:
getTypeDefinitionin interfaceXSAttributeDeclaration
-
getScope
public short getScope()
Optional. Either global or a complex type definition (ctDefinition). This property is absent in the case of declarations within attribute group definitions: their scope will be determined when they are used in the construction of complex type definitions.- Specified by:
getScopein interfaceXSAttributeDeclaration
-
getEnclosingCTDefinition
public XSComplexTypeDefinition getEnclosingCTDefinition()
Locally scoped declarations are available for use only within the complex type definition identified by thescopeproperty.- Specified by:
getEnclosingCTDefinitionin interfaceXSAttributeDeclaration
-
getConstraintType
public short getConstraintType()
Value constraint: one of default, fixed.- Specified by:
getConstraintTypein interfaceXSAttributeDeclaration
-
getConstraintValue
public String getConstraintValue()
Value constraint: The actual value (with respect to the {type definition}) Should we return Object instead of DOMString?- Specified by:
getConstraintValuein interfaceXSAttributeDeclaration
-
getAnnotation
public XSAnnotation getAnnotation()
Optional. Annotation.- Specified by:
getAnnotationin interfaceXSAttributeDeclaration
-
getAnnotations
public XSObjectList getAnnotations()
Optional. Annotations.- Specified by:
getAnnotationsin interfaceXSAttributeDeclaration
-
getValInfo
public ValidatedInfo getValInfo()
-
getNamespaceItem
public XSNamespaceItem getNamespaceItem()
Description copied from interface:XSObjectA namespace schema information item corresponding to the target namespace of the component, if it is globally declared; ornullotherwise.- Specified by:
getNamespaceItemin interfaceXSObject- See Also:
XSObject.getNamespaceItem()
-
getActualVC
public Object getActualVC()
Description copied from interface:XSAttributeDeclarationValue Constraint: Binding specific actual constraint value ornullif the value is in error or there is no value constraint.- Specified by:
getActualVCin interfaceXSAttributeDeclaration
-
getActualVCType
public short getActualVCType()
Description copied from interface:XSAttributeDeclarationThe actual constraint value built-in datatype, e.g.STRING_DT, SHORT_DT. If the type definition of this value is a list type definition, this method returnsLIST_DT. If the type definition of this value is a list type definition whose item type is a union type definition, this method returnsLISTOFUNION_DT. To query the actual constraint value of the list or list of union type definitions useitemValueTypes. If theactualValueisnull, this method returnsUNAVAILABLE_DT.- Specified by:
getActualVCTypein interfaceXSAttributeDeclaration
-
getItemValueTypes
public ShortList getItemValueTypes()
Description copied from interface:XSAttributeDeclarationIn the case the actual constraint value represents a list, i.e. theactualValueTypeisLIST_DT, the returned array consists of one type kind which represents the itemType. If the actual constraint value represents a list type definition whose item type is a union type definition, i.e.LISTOFUNION_DT, for each actual constraint value in the list the array contains the corresponding memberType kind. For examples, seeItemPSVI.itemValueTypes.- Specified by:
getItemValueTypesin interfaceXSAttributeDeclaration
-
getValueConstraintValue
public XSValue getValueConstraintValue()
Description copied from interface:XSAttributeDeclarationThe actual value of the default or fixed value constraint.- Specified by:
getValueConstraintValuein interfaceXSAttributeDeclaration
-
-