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


com.saxonica.schema
Class SuperSchema

java.lang.Object
  |
  +--com.saxonica.schema.SuperSchema

public class SuperSchema
extends java.lang.Object

A class representing the collection of all known schema components, aggregated across all namespaces


Constructor Summary
SuperSchema()
           
 
Method Summary
 void addAttributeDecl(AttributeDecl attribute)
          Adds the given attribute definition to this Schema.
 void addAttributeGroup(AttributeGroupDecl group)
          Adds the given attribute group to the SuperSchema.
 void addElementDecl(ElementDecl element)
          Adds the given element declaration to the SuperSchema.
 void addGroup(Group group)
          Adds the given group to the SuperSchema.
 void addIdentityConstraint(IdentityConstraint constraint)
          Adds the given identity constraint to the SuperSchema.
 void addSchemaType(SchemaType type)
          Adds the given schema type to the SuperSchema.
 AttributeDecl getAttributeDecl(int fingerprint)
          Get the top-level attribute declaration with a given fingerprint.
 AttributeGroupDecl getAttributeGroup(int fingerprint)
          Get the top-level attribute group with a given fingerprint.
 ElementDecl getElementDecl(int fingerprint)
          Get the top-level element declaration with a given fingerprint.
 Group getGroup(int fingerprint)
          Get the top-level group with a given fingerprint.
 IdentityConstraint getIdentityConstraint(int fingerprint)
          Get the identity constraint with a given fingerprint.
 SchemaType getSchemaType(int fingerprint)
          Get the top-level schema type with a given fingerprint.
 void removeAttributeDecl(AttributeDecl attribute)
          Remove an attribute declaration from the superschema if it is present
 void removeAttributeGroup(AttributeGroup group)
          Remove an attribute group from the superschema if it is present
 void removeElementDecl(ElementDecl element)
          Remove an element declaration from the superschema if it is present
 void removeGroup(Group group)
          Remove a group from the superschema if it is present
 void removeIdentityConstraint(IdentityConstraint constraint)
          Remove an identity constraint from the superschema if it is present
 void removeSchemaType(SchemaType schemaType)
          Remove a schema type from the superschema if it is present
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuperSchema

public SuperSchema()
Method Detail

getAttributeDecl

public AttributeDecl getAttributeDecl(int fingerprint)
Get the top-level attribute declaration with a given fingerprint.

Parameters:
fingerprint - the fingerprint of the attribute declaration
Returns:
the attribute declaration, or null if there is none with this name.

addAttributeDecl

public void addAttributeDecl(AttributeDecl attribute)
Adds the given attribute definition to this Schema. It will overwrite any existing attribute declaration with the same name.

Parameters:
attribute - the AttributeDecl to add

removeAttributeDecl

public void removeAttributeDecl(AttributeDecl attribute)
Remove an attribute declaration from the superschema if it is present

Parameters:
attribute - the attribute declaration to be removed

getAttributeGroup

public AttributeGroupDecl getAttributeGroup(int fingerprint)
Get the top-level attribute group with a given fingerprint.

Parameters:
fingerprint - the fingerprint of the attribute group
Returns:
the attribute group, or null if there is none with this name.

addAttributeGroup

public void addAttributeGroup(AttributeGroupDecl group)
Adds the given attribute group to the SuperSchema. It will overwrite any existing attribute group with the same name.

Parameters:
group - the AttributeGroup to add

removeAttributeGroup

public void removeAttributeGroup(AttributeGroup group)
Remove an attribute group from the superschema if it is present

Parameters:
group - the attribute group to be removed

getElementDecl

public ElementDecl getElementDecl(int fingerprint)
Get the top-level element declaration with a given fingerprint.

Parameters:
fingerprint - the fingerprint of the element declaration
Returns:
the element declaration, or null if there is none with this name.

addElementDecl

public void addElementDecl(ElementDecl element)
Adds the given element declaration to the SuperSchema. It will overwrite any existing element declaration with the same name.

Parameters:
element - the ElementDecl to add

removeElementDecl

public void removeElementDecl(ElementDecl element)
Remove an element declaration from the superschema if it is present

Parameters:
element - the element declaration to be removed

getGroup

public Group getGroup(int fingerprint)
Get the top-level group with a given fingerprint.

Parameters:
fingerprint - the fingerprint of the group
Returns:
the group, or null if there is none with this name.

addGroup

public void addGroup(Group group)
Adds the given group to the SuperSchema. It will overwrite any existing group with the same name.

Parameters:
group - the Group to add

removeGroup

public void removeGroup(Group group)
Remove a group from the superschema if it is present

Parameters:
group - the group to be removed

getSchemaType

public SchemaType getSchemaType(int fingerprint)
Get the top-level schema type with a given fingerprint.

Parameters:
fingerprint - the fingerprint of the schema type
Returns:
the schema type , or null if there is none with this name.

addSchemaType

public void addSchemaType(SchemaType type)
Adds the given schema type to the SuperSchema. It will overwrite any existing schema type up with the same name.

Parameters:
type - the simple or complex type to add

removeSchemaType

public void removeSchemaType(SchemaType schemaType)
Remove a schema type from the superschema if it is present

Parameters:
schemaType - the schema type to be removed

getIdentityConstraint

public IdentityConstraint getIdentityConstraint(int fingerprint)
Get the identity constraint with a given fingerprint.

Parameters:
fingerprint - the fingerprint of the IdentityConstraint
Returns:
the identity constraint, or null if there is none with this name.

addIdentityConstraint

public void addIdentityConstraint(IdentityConstraint constraint)
Adds the given identity constraint to the SuperSchema. It will overwrite any existing identity constraint with the same name.

Parameters:
constraint - the identity constraint to add

removeIdentityConstraint

public void removeIdentityConstraint(IdentityConstraint constraint)
Remove an identity constraint from the superschema if it is present

Parameters:
constraint - the schema type to be removed


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