Class XSWildcardDecl
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.XSWildcardDecl
-
- All Implemented Interfaces:
XSObject
,XSTerm
,XSWildcard
public class XSWildcardDecl extends Object implements XSWildcard
The XML representation for a wildcard declaration schema component is an <any> or <anyAttribute> element information item- Version:
- $Id$
- Author:
- Sandy Gao, IBM, Rahul Srivastava, Sun Microsystems Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ABSENT
XSObjectList
fAnnotations
String[]
fNamespaceList
short
fProcessContents
short
fType
-
Fields inherited from interface org.smooks.engine.delivery.sax.ng.org.apache.xerces.xs.XSWildcard
NSCONSTRAINT_ANY, NSCONSTRAINT_LIST, NSCONSTRAINT_NOT, PC_LAX, PC_SKIP, PC_STRICT
-
-
Constructor Summary
Constructors Constructor Description XSWildcardDecl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowNamespace(String namespace)
Validation Rule: Wildcard allows Namespace NameXSAnnotation
getAnnotation()
Optional.XSObjectList
getAnnotations()
Optional.short
getConstraintType()
Namespace constraint: A constraint type: any, not, list.String
getName()
Thename
of thisXSObject
depending on theXSObject
type.String
getNamespace()
The namespace URI of this node, ornull
if it is unspecified.XSNamespaceItem
getNamespaceItem()
A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; ornull
otherwise.StringList
getNsConstraintList()
Namespace constraint.short
getProcessContents()
{process contents} One of skip, lax or strict.String
getProcessContentsAsString()
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 SubsetXSWildcardDecl
performIntersectionWith(XSWildcardDecl wildcard, short processContents)
Schema Component Constraint: Attribute Wildcard IntersectionXSWildcardDecl
performUnionWith(XSWildcardDecl wildcard, short processContents)
Schema Component Constraint: Attribute Wildcard UnionString
toString()
boolean
weakerProcessContents(XSWildcardDecl superWildcard)
Check whether this wildcard has a weaker process contents than the super.
-
-
-
Field Detail
-
ABSENT
public static final String ABSENT
-
fType
public short fType
-
fProcessContents
public short fProcessContents
-
fNamespaceList
public String[] fNamespaceList
-
fAnnotations
public XSObjectList fAnnotations
-
-
Method Detail
-
allowNamespace
public boolean allowNamespace(String namespace)
Validation Rule: Wildcard allows Namespace Name
-
isSubsetOf
public boolean isSubsetOf(XSWildcardDecl superWildcard)
Schema Component Constraint: Wildcard Subset
-
weakerProcessContents
public boolean weakerProcessContents(XSWildcardDecl superWildcard)
Check whether this wildcard has a weaker process contents than the super.
-
performUnionWith
public XSWildcardDecl performUnionWith(XSWildcardDecl wildcard, short processContents)
Schema Component Constraint: Attribute Wildcard Union
-
performIntersectionWith
public XSWildcardDecl performIntersectionWith(XSWildcardDecl wildcard, short processContents)
Schema Component Constraint: Attribute Wildcard Intersection
-
getType
public short getType()
Get the type of the object, i.e ELEMENT_DECLARATION.
-
getName
public String getName()
Thename
of thisXSObject
depending on theXSObject
type.
-
getNamespace
public String 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 interfaceXSObject
-
getConstraintType
public short getConstraintType()
Namespace constraint: A constraint type: any, not, list.- Specified by:
getConstraintType
in interfaceXSWildcard
-
getNsConstraintList
public StringList getNsConstraintList()
Namespace constraint. ForconstraintType
LIST_NSCONSTRAINT, the list contains allowed namespaces. ForconstraintType
NOT_NSCONSTRAINT, the list contains disallowed namespaces.- Specified by:
getNsConstraintList
in interfaceXSWildcard
-
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 interfaceXSWildcard
-
getProcessContentsAsString
public String getProcessContentsAsString()
String valid of {process contents}. One of "skip", "lax" or "strict".
-
getAnnotation
public XSAnnotation getAnnotation()
Optional. Annotation.- Specified by:
getAnnotation
in interfaceXSWildcard
-
getAnnotations
public XSObjectList getAnnotations()
Optional. Annotations.- Specified by:
getAnnotations
in interfaceXSWildcard
-
getNamespaceItem
public XSNamespaceItem getNamespaceItem()
Description copied from interface: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 interfaceXSObject
- See Also:
XSObject.getNamespaceItem()
-
-