Package org.apache.xerces.impl.xs
Class XSWildcardDecl
java.lang.Object
org.apache.xerces.impl.xs.XSWildcardDecl
- All Implemented Interfaces:
org.apache.xerces.xs.XSObject
,org.apache.xerces.xs.XSTerm
,org.apache.xerces.xs.XSWildcard
The XML representation for a wildcard declaration
schema component is an <any> or <anyAttribute> element information item
INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Version:
- $Id: XSWildcardDecl.java 965250 2010-07-18 16:04:58Z mrglavas $
- Author:
- Sandy Gao, IBM, Rahul Srivastava, Sun Microsystems Inc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
org.apache.xerces.xs.XSObjectList
String[]
short
short
Fields inherited from interface org.apache.xerces.xs.XSWildcard
NSCONSTRAINT_ANY, NSCONSTRAINT_LIST, NSCONSTRAINT_NOT, PC_LAX, PC_SKIP, PC_STRICT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
allowNamespace
(String namespace) Validation Rule: Wildcard allows Namespace Nameorg.apache.xerces.xs.XSAnnotation
Optional.org.apache.xerces.xs.XSObjectList
Optional.short
Namespace constraint: A constraint type: any, not, list.getName()
Thename
of thisXSObject
depending on theXSObject
type.The namespace URI of this node, ornull
if it is unspecified.org.apache.xerces.xs.XSNamespaceItem
A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; ornull
otherwise.org.apache.xerces.xs.StringList
Namespace constraint.short
{process contents} One of skip, lax or strict.String valid of {process contents}.short
getType()
Get the type of the object, i.e ELEMENT_DECLARATION.boolean
isSubsetOf
(XSWildcardDecl superWildcard) Schema Component Constraint: Wildcard SubsetperformIntersectionWith
(XSWildcardDecl wildcard, short processContents) Schema Component Constraint: Attribute Wildcard IntersectionperformUnionWith
(XSWildcardDecl wildcard, short processContents) Schema Component Constraint: Attribute Wildcard UniontoString()
boolean
weakerProcessContents
(XSWildcardDecl superWildcard) Check whether this wildcard has a weaker process contents than the super.
-
Field Details
-
ABSENT
-
fType
public short fType -
fProcessContents
public short fProcessContents -
fNamespaceList
-
fAnnotations
public org.apache.xerces.xs.XSObjectList fAnnotations
-
-
Constructor Details
-
XSWildcardDecl
public XSWildcardDecl()
-
-
Method Details
-
allowNamespace
Validation Rule: Wildcard allows Namespace Name -
isSubsetOf
Schema Component Constraint: Wildcard Subset -
weakerProcessContents
Check whether this wildcard has a weaker process contents than the super. -
performUnionWith
Schema Component Constraint: Attribute Wildcard Union -
performIntersectionWith
Schema Component Constraint: Attribute Wildcard Intersection -
toString
-
getType
public short getType()Get the type of the object, i.e ELEMENT_DECLARATION.- Specified by:
getType
in interfaceorg.apache.xerces.xs.XSObject
-
getName
Thename
of thisXSObject
depending on theXSObject
type.- Specified by:
getName
in interfaceorg.apache.xerces.xs.XSObject
-
getNamespace
The namespace URI of this node, ornull
if it is unspecified. defines how a namespace URI is attached to schema components.- Specified by:
getNamespace
in interfaceorg.apache.xerces.xs.XSObject
-
getConstraintType
public short getConstraintType()Namespace constraint: A constraint type: any, not, list.- Specified by:
getConstraintType
in interfaceorg.apache.xerces.xs.XSWildcard
-
getNsConstraintList
public org.apache.xerces.xs.StringList getNsConstraintList()Namespace constraint. ForconstraintType
LIST_NSCONSTRAINT, the list contains allowed namespaces. ForconstraintType
NOT_NSCONSTRAINT, the list contains disallowed namespaces.- Specified by:
getNsConstraintList
in interfaceorg.apache.xerces.xs.XSWildcard
-
getProcessContents
public short getProcessContents(){process contents} One of skip, lax or strict. Valid constants values are: PC_SKIP, PC_LAX, PC_STRICT.- Specified by:
getProcessContents
in interfaceorg.apache.xerces.xs.XSWildcard
-
getProcessContentsAsString
String valid of {process contents}. One of "skip", "lax" or "strict". -
getAnnotation
public org.apache.xerces.xs.XSAnnotation getAnnotation()Optional. Annotation.- Specified by:
getAnnotation
in interfaceorg.apache.xerces.xs.XSWildcard
-
getAnnotations
public org.apache.xerces.xs.XSObjectList getAnnotations()Optional. Annotations.- Specified by:
getAnnotations
in interfaceorg.apache.xerces.xs.XSWildcard
-
getNamespaceItem
public org.apache.xerces.xs.XSNamespaceItem getNamespaceItem()Description copied from interface:org.apache.xerces.xs.XSObject
A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; ornull
otherwise.- Specified by:
getNamespaceItem
in interfaceorg.apache.xerces.xs.XSObject
- See Also:
-