org.jbind.xml.core.constraint
Interface IReferenceConstraint
- All Superinterfaces:
- IConstraint, IHasBindingAttributes, IHasLocation, IIdentityConstraint, ISourceInfo
- All Known Subinterfaces:
- IIdRefOrIdRefsConstraint, ITypeKeyRefConstraint
- All Known Implementing Classes:
- IdRefOrIdRefsConstraint, TypeKeyRefConstraint
- public interface IReferenceConstraint
- extends IIdentityConstraint, ISourceInfo
Describes a reference constraint.
Method Summary |
java.lang.String |
getConstraintKey()
Gets the key of the reference constraint. |
boolean |
isSingleNotMultipleReference()
Indicates if the constraint references a single data object or if it references
multiple data objects. |
isSingleNotMultipleReference
public boolean isSingleNotMultipleReference()
- Indicates if the constraint references a single data object or if it references
multiple data objects.
- Returns:
- Returns
true
iff a single data object is referenced.
getConstraintKey
public java.lang.String getConstraintKey()
- Gets the key of the reference constraint. The key must be unique within the
type the reference constraint belongs to. The key is used by the methods
that are generated for reference constraints to access their referenced data.
- Returns:
- (required).