Methods Summary |
---|
public java.lang.Object | getActualVC()
return getConstraintType() == XSConstants.VC_NONE ?
null :
fDefault.actualValue;
|
public short | getActualVCType()
return getConstraintType() == XSConstants.VC_NONE ?
XSConstants.UNAVAILABLE_DT :
fDefault.actualValueType;
|
public XSAnnotation | getAnnotation()Optional. Annotation.
return (fAnnotations != null) ? (XSAnnotation) fAnnotations.item(0) : null;
|
public XSObjectList | getAnnotations()Optional. Annotations.
return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
|
public short | getConstraintType()Value constraint: one of default, fixed.
return fConstraintType;
|
public java.lang.String | getConstraintValue()Value constraint: The actual value (with respect to the {type
definition}) Should we return Object instead of DOMString?
// REVISIT: SCAPI: what's the proper representation
return getConstraintType() == XSConstants.VC_NONE ?
null :
fDefault.stringValue();
|
public XSComplexTypeDefinition | getEnclosingCTDefinition()Locally scoped declarations are available for use only within the
complex type definition identified by the scope
property.
return fEnclosingCT;
|
public ShortList | getItemValueTypes()
return getConstraintType() == XSConstants.VC_NONE ?
null :
fDefault.itemValueTypes;
|
public java.lang.String | getName()The name of this XSObject depending on the
XSObject type.
return fName;
|
public java.lang.String | getNamespace()The namespace URI of this node, or null if it is
unspecified. defines how a namespace URI is attached to schema
components.
return fTargetNamespace;
|
public XSNamespaceItem | getNamespaceItem()
// REVISIT: implement
return null;
|
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.
return fScope;
|
public short | getType()Get the type of the object, i.e ELEMENT_DECLARATION.
return XSConstants.ATTRIBUTE_DECLARATION;
|
public XSSimpleTypeDefinition | getTypeDefinition()A simple type definition
return fType;
|
public org.apache.xerces.impl.dv.ValidatedInfo | getValInfo()
return fDefault;
|
public void | reset()
fName = null;
fTargetNamespace = null;
fType = null;
fConstraintType = XSConstants.VC_NONE;
fScope = XSConstants.SCOPE_ABSENT;
fDefault = null;
fAnnotations = null;
|
public void | setValues(java.lang.String name, java.lang.String targetNamespace, org.apache.xerces.impl.dv.XSSimpleType simpleType, short constraintType, short scope, org.apache.xerces.impl.dv.ValidatedInfo valInfo, XSComplexTypeDecl enclosingCT, XSObjectList annotations)
fName = name;
fTargetNamespace = targetNamespace;
fType = simpleType;
fConstraintType = constraintType;
fScope = scope;
fDefault = valInfo;
fEnclosingCT = enclosingCT;
fAnnotations = annotations;
|