com.saxonica.schema
Class Unique
java.lang.Object
  
com.saxonica.schema.SchemaStructure
      
com.saxonica.schema.IdentityConstraint
          
com.saxonica.schema.Unique
- All Implemented Interfaces: 
 - SerializableSchemaComponent, UserSchemaComponent, Serializable, SourceLocator, SchemaComponent
 
public class Unique
- extends IdentityConstraint
 
This class represents an xs:unique identity constraint
- See Also:
 - Serialized Form
 
 
 
| Fields inherited from interface com.saxonica.schema.SerializableSchemaComponent | 
ALL_COMPOSITOR, ATOMIC_TYPE, ATTRIBUTE_DECL, ATTRIBUTE_GROUP, ATTRIBUTE_GROUP_REF, ATTRIBUTE_USE, ATTRIBUTE_WILDCARD, CHOICE_COMPOSITOR, COMPLEX_TYPE, ELEMENT_DECL, ELEMENT_PARTICLE, ELEMENT_WILDCARD, FACET, KEY, KEYREF, LIST_TYPE, MODEL_GROUP, MODEL_GROUP_REF, NOTATION, SEQUENCE_COMPOSITOR, UNION_TYPE, UNIQUE | 
 
| 
Constructor Summary | 
Unique(String name)
 
          Create a new Unique Identity-Constraint. | 
 
 
| Methods inherited from class com.saxonica.schema.IdentityConstraint | 
addField, fixup, getFields, getFingerprint, getName, getSelector, iterateFields, setFingerprint, setName, setSelector, typeCheck, validate | 
 
| Methods inherited from class com.saxonica.schema.SchemaStructure | 
getColumnNumber, getConfiguration, getFixupStatus, getLineNumber, getPublicId, getSystemId, getValidationStatus, lookForCycles, setConfiguration, setFixupStatus, setLineNumber, setLocator, setSystemId, setValidationStatus | 
 
 
 
 
Unique
public Unique(String name)
       throws SchemaException
- Create a new Unique Identity-Constraint.
- Parameters:
 name - the name for the IdentityConstraint. Must not be null.
- Throws:
 SchemaException
 
serialize
public void serialize(SchemaSerializer serializer)
               throws IOException
- Serialize the schema component
- Throws:
 IOException
 
 
getComponentTypeCode
public int getComponentTypeCode()
- Get a unique number identifying the type of component
 
 
Copyright (C) Michael H. Kay. All rights reserved.