Free Trial - Stylus Studio, The World's Best XML IDE!


com.saxonica.schema
Class ElementWildcard

java.lang.Object
  |
  +--com.saxonica.schema.SchemaElement
        |
        +--com.saxonica.schema.Wildcard
              |
              +--com.saxonica.schema.ElementWildcard
All Implemented Interfaces:
Particle, SchemaComponent, SchemaDeclaration, java.io.Serializable, javax.xml.transform.SourceLocator, Term

public class ElementWildcard
extends Wildcard
implements SchemaComponent, Particle, Term

This class represents an element in the schema.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.saxonica.schema.SchemaElement
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, COMPOSITOR, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD_ATTRIBUTE, WILDCARD_ELEMENT
 
Constructor Summary
ElementWildcard()
           
 
Method Summary
 void compile(Schema schema, UserComplexType subjectType)
          Compile complex types
 boolean fixup(Schema schema)
          Check references from this component to other components
 int getMaxOccurs()
          Get the maxOccurs attribute
 int getMinOccurs()
          Get the minOccurs attribute
 short getStructureType()
          Returns the type of this Schema Structure
 Term getTerm()
          Get the term represented by this particle
 boolean isEmptiable()
          Determine if this particle can be empty
 void setMaxOccurs(int maxOccurs)
          Set the maxOccurs attribute
 void setMinOccurs(int minOccurs)
          Set the minOccurs attribute.
 
Methods inherited from class com.saxonica.schema.Wildcard
addNamespace, allowsAny, getAllowedNamespaces, getDisallowedNamespace, getProcessContents, isIntensionalSubset, matches, setDisallowedNamespace, setNoNamespacesAllowed, setParent, setProcessContents, toString, validate
 
Methods inherited from class com.saxonica.schema.SchemaElement
getColumnNumber, getLineNumber, getPublicId, getSystemId, setLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.saxonica.schema.SchemaComponent
validate
 

Constructor Detail

ElementWildcard

public ElementWildcard()
Method Detail

getStructureType

public short getStructureType()
Returns the type of this Schema Structure

Specified by:
getStructureType in class SchemaElement
Returns:
the type of this Schema Structure

getMinOccurs

public int getMinOccurs()
Get the minOccurs attribute

Specified by:
getMinOccurs in interface Particle
Returns:
the minOccurs attribute (default 1)

setMinOccurs

public void setMinOccurs(int minOccurs)
Set the minOccurs attribute.

Parameters:
minOccurs - the value of the minOccurs attribute

getMaxOccurs

public int getMaxOccurs()
Get the maxOccurs attribute

Specified by:
getMaxOccurs in interface Particle
Returns:
the value of the attribute (unbounded = -1)

setMaxOccurs

public void setMaxOccurs(int maxOccurs)
Set the maxOccurs attribute

Parameters:
maxOccurs - the value of the attribute (unbounded = -1)

isEmptiable

public boolean isEmptiable()
Determine if this particle can be empty

Specified by:
isEmptiable in interface Particle

getTerm

public Term getTerm()
Get the term represented by this particle

Specified by:
getTerm in interface Particle

fixup

public boolean fixup(Schema schema)
              throws SchemaException
Description copied from interface: SchemaComponent
Check references from this component to other components

Specified by:
fixup in interface SchemaComponent
Parameters:
schema - The schema is used for reporting errors
Returns:
true if all is well, false if errors found
SchemaException

compile

public void compile(Schema schema,
                    UserComplexType subjectType)
             throws SchemaException
Description copied from interface: Particle
Compile complex types

Specified by:
compile in interface Particle
Parameters:
schema - used for error reporting purposes
subjectType - the complex type being compiled
SchemaException


Stylus Studio features integrated development and debugging support for Saxon in the XQuery editor and XSLT editor.