java.io.Serializable
public class KeyRef extends IdentityConstraint
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, WILDCARD
Constructor | Description |
---|---|
KeyRef(java.lang.String name,
java.lang.String refer) |
Creates a new KeyRef Identity-Constraint.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getRefer() |
Returns the refer field (the name of the key being referenced).
|
short |
getStructureType() |
Returns the type of this Schema Structure.
|
void |
setRefer(java.lang.String refer) |
Sets the refer field (the name of the key being referenced).
|
addAnnotation, getAnnotations, removeAnnotation
addField, getFields, getId, getName, getSelector, removeField, setId, setName, setSelector, validate
public KeyRef(java.lang.String name, java.lang.String refer) throws SchemaException
name
- the name for the IdentityConstraint. Must not be null.SchemaException
- when name or refer are null.public java.lang.String getRefer()
public void setRefer(java.lang.String refer) throws SchemaException
refer
- the name of the key to reference. Must not be null.SchemaException
- when refer is null.public short getStructureType()
getStructureType
in class IdentityConstraint
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com