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 and Description |
---|
KeyRef(String name,
String refer)
Creates a new KeyRef Identity-Constraint.
|
Modifier and Type | Method and Description |
---|---|
String |
getRefer()
Returns the refer field (the name of the key being referenced).
|
short |
getStructureType()
Returns the type of this Schema Structure.
|
void |
setRefer(String refer)
Sets the refer field (the name of the key being referenced).
|
addField, getFields, getId, getName, getSelector, removeField, setId, setName, setSelector, validate
addAnnotation, getAnnotations, removeAnnotation
public KeyRef(String name, String refer) throws SchemaException
name
- the name for the IdentityConstraint. Must not be null.SchemaException
- when name or refer are null.public String getRefer()
public void setRefer(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
Copyright © 2017. All rights reserved.