org.exolab.castor.xml.schema

Class KeyRef

public class KeyRef extends IdentityConstraint

A class that represents the XML Schema Identity Constraint: KeyRef.

Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:32 $

Author: Keith Visco

Constructor Summary
KeyRef(String name, String refer)
Creates a new KeyRef Identity-Constraint.
Method Summary
StringgetRefer()
Returns the refer field (the name of the key being referenced).
shortgetStructureType()
Returns the type of this Schema Structure.
voidsetRefer(String refer)
Sets the refer field (the name of the key being referenced).

Constructor Detail

KeyRef

public KeyRef(String name, String refer)
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 Detail

getRefer

public String getRefer()
Returns the refer field (the name of the key being referenced).

Returns: the refer field (the name of the key being referenced).

getStructureType

public short getStructureType()
Returns the type of this Schema Structure.

Returns: the type of this Schema Structure.

setRefer

public void setRefer(String refer)
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.

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com