Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.xs

public Class XSWildcardDecl

extends Object
implements XSWildcard
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.xs.XSWildcard, com.sun.org.apache.xerces.internal.xs.XSTerm, com.sun.org.apache.xerces.internal.xs.XSObject
Imports
com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl, .XSObjectListImpl, com.sun.org.apache.xerces.internal.xs.StringList, .XSAnnotation, .XSConstants, .XSNamespaceItem, .XSWildcard, .XSObjectList

The XML representation for a wildcard declaration schema component is an <any> or <anyAttribute> element information item
Authors
Sandy Gao, IBM, Rahul Srivastava, Sun Microsystems Inc.

Field Summary

Modifier and TypeField and Description
public static final String
public XSObjectList
private String
fDescription

get the string description of this wildcard

public String[]
public short
public short

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
allowNamespace(String namespace)

Validation Rule: Wildcard allows Namespace Name

private boolean
pack-priv boolean
public XSAnnotation
public XSObjectList
public short
getConstraintType()

Implements com.sun.org.apache.xerces.internal.xs.XSWildcard.getConstraintType.

Namespace constraint: A constraint type: any, not, list.

public String
getName()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getName.

The name of this XSObject depending on the XSObject type.

public String
getNamespace()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getNamespace.

The namespace URI of this node, or null if it is unspecified.

public XSNamespaceItem
getNamespaceItem()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getNamespaceItem.

A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; or null otherwise.

public StringList
public short
getProcessContents()

Implements com.sun.org.apache.xerces.internal.xs.XSWildcard.getProcessContents.

{process contents} One of skip, lax or strict.

public String
getProcessContentsAsString()

String valid of {process contents}.

public short
getType()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getType.

Get the type of the object, i.e ELEMENT_DECLARATION.

pack-priv String[]
intersect2sets(String[] one, String[] theOther)

public boolean
isSubsetOf(XSWildcardDecl superWildcard)

Schema Component Constraint: Wildcard Subset

public XSWildcardDecl
performIntersectionWith(XSWildcardDecl wildcard, short processContents)

Schema Component Constraint: Attribute Wildcard Intersection

public XSWildcardDecl
performUnionWith(XSWildcardDecl wildcard, short processContents)

Schema Component Constraint: Attribute Wildcard Union

pack-priv boolean
subset2sets(String[] subSet, String[] superSet)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

pack-priv String[]
union2sets(String[] one, String[] theOther)

public boolean
weakerProcessContents(XSWildcardDecl superWildcard)

Check whether this wildcard has a weaker process contents than the super.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

ABSENTback to summary
public static final String ABSENT
fAnnotationsback to summary
public XSObjectList fAnnotations
fDescriptionback to summary
private String fDescription

get the string description of this wildcard

fNamespaceListback to summary
public String[] fNamespaceList
fProcessContentsback to summary
public short fProcessContents
fTypeback to summary
public short fType

Constructor Detail

XSWildcardDeclback to summary
public XSWildcardDecl()

Method Detail

allowNamespaceback to summary
public boolean allowNamespace(String namespace)

Validation Rule: Wildcard allows Namespace Name

areSameback to summary
private boolean areSame(XSWildcardDecl wildcard)
elementInSetback to summary
pack-priv boolean elementInSet(String ele, String[] set)
getAnnotationback to summary
public XSAnnotation getAnnotation()

Implements com.sun.org.apache.xerces.internal.xs.XSWildcard.getAnnotation.

Optional. Annotation.

getAnnotationsback to summary
public XSObjectList getAnnotations()

Implements com.sun.org.apache.xerces.internal.xs.XSWildcard.getAnnotations.

Optional. Annotations.

getConstraintTypeback to summary
public short getConstraintType()

Implements com.sun.org.apache.xerces.internal.xs.XSWildcard.getConstraintType.

Namespace constraint: A constraint type: any, not, list.

getNameback to summary
public String getName()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getName.

The name of this XSObject depending on the XSObject type.

getNamespaceback to summary
public String getNamespace()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getNamespace.

The namespace URI of this node, or null if it is unspecified. defines how a namespace URI is attached to schema components.

getNamespaceItemback to summary
public XSNamespaceItem getNamespaceItem()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getNamespaceItem.

Doc from com.sun.org.apache.xerces.internal.xs.XSObject.getNamespaceItem.

A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; or null otherwise.

See Also
org.apache.xerces.xs.XSObject#getNamespaceItem()
getNsConstraintListback to summary
public StringList getNsConstraintList()

Implements com.sun.org.apache.xerces.internal.xs.XSWildcard.getNsConstraintList.

Namespace constraint. For constraintType LIST_NSCONSTRAINT, the list contains allowed namespaces. For constraintType NOT_NSCONSTRAINT, the list contains disallowed namespaces.

getProcessContentsback to summary
public short getProcessContents()

Implements com.sun.org.apache.xerces.internal.xs.XSWildcard.getProcessContents.

{process contents} One of skip, lax or strict. Valid constants values are: PC_SKIP, PC_LAX, PC_STRICT.

getProcessContentsAsStringback to summary
public String getProcessContentsAsString()

String valid of {process contents}. One of "skip", "lax" or "strict".

getTypeback to summary
public short getType()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getType.

Get the type of the object, i.e ELEMENT_DECLARATION.

intersect2setsback to summary
pack-priv String[] intersect2sets(String[] one, String[] theOther)
isSubsetOfback to summary
public boolean isSubsetOf(XSWildcardDecl superWildcard)

Schema Component Constraint: Wildcard Subset

performIntersectionWithback to summary
public XSWildcardDecl performIntersectionWith(XSWildcardDecl wildcard, short processContents)

Schema Component Constraint: Attribute Wildcard Intersection

performUnionWithback to summary
public XSWildcardDecl performUnionWith(XSWildcardDecl wildcard, short processContents)

Schema Component Constraint: Attribute Wildcard Union

subset2setsback to summary
pack-priv boolean subset2sets(String[] subSet, String[] superSet)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

union2setsback to summary
pack-priv String[] union2sets(String[] one, String[] theOther)
weakerProcessContentsback to summary
public boolean weakerProcessContents(XSWildcardDecl superWildcard)

Check whether this wildcard has a weaker process contents than the super.