Class KeyRef
java.lang.Object
org.exolab.castor.xml.schema.Structure
org.exolab.castor.xml.schema.Annotated
org.exolab.castor.xml.schema.IdentityConstraint
org.exolab.castor.xml.schema.KeyRef
- All Implemented Interfaces:
Serializable
A class that represents the XML Schema Identity Constraint: KeyRef.
- Version:
- $Revision: 6230 $ $Date: 2006-04-14 04:14:43 -0600 (Fri, 14 Apr 2006) $
- Author:
- Keith Visco
- See Also:
-
Field Summary
Fields inherited from class Structure
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, MODELGROUP, MODELGROUP_REF, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARDModifier and TypeFieldDescriptionstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final short -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRefer()Returns the refer field (the name of the key being referenced).shortReturns the type of this Schema Structure.voidSets the refer field (the name of the key being referenced).Methods inherited from class IdentityConstraint
addField, getFields, getId, getName, getSelector, removeField, setId, setName, setSelector, validateModifier and TypeMethodDescriptionvoidaddField(IdentityField field) Adds the given IdentityField to this IdentityConstraintReturns an Enumeration of the IdentityFields contained within this IdentityConstraint.getId()Returns the Id of this IdentityConstraint, or null if no Id has been set.getName()Returns the name of this IdentityConstraint.Returns the selector of this IdentityConstraint.booleanremoveField(IdentityField field) Removes the given IdentityField from this IdentityConstraint.voidSets the Id for this IdentityConstraint.voidSets the name for this IdentityConstraint.voidsetSelector(IdentitySelector selector) Sets the selector for this IdentityConstraint.voidvalidate()Checks the validity of this Schema defintion.Methods inherited from class Annotated
addAnnotation, getAnnotations, removeAnnotationModifier and TypeMethodDescriptionvoidaddAnnotation(Annotation annotation) Adds the given Annotation to this Annotated Structure.Returns an Enumeration of the Annotations contained within this Annotated type.voidremoveAnnotation(Annotation annotation) Removes the given Annotation from this Annotated Structure.
-
Constructor Details
-
KeyRef
Creates a new KeyRef Identity-Constraint.- Parameters:
name- the name for the IdentityConstraint. Must not be null.- Throws:
SchemaException- when name or refer are null.
-
-
Method Details
-
getRefer
Returns the refer field (the name of the key being referenced).- Returns:
- the refer field (the name of the key being referenced).
-
setRefer
Sets the refer field (the name of the key being referenced).- Parameters:
refer- the name of the key to reference. Must not be null.- Throws:
SchemaException- when refer is null.
-
getStructureType
public short getStructureType()Returns the type of this Schema Structure.- Specified by:
getStructureTypein classIdentityConstraint- Returns:
- the type of this Schema Structure.
-