com.softwareag.mdm.schema
Interface ConstraintNomenclature

All Superinterfaces:
Constraint

public interface ConstraintNomenclature
extends Constraint

Specifies a nomenclature constraint that may be contextual and dynamic.

Note: The enumeration constraint (see ConstraintEnumeration) is more appropriate than this interface when display must be localized or when there are many values in the enumeration.

Schema definition

The constraint must be declared under the element xs:annotation/xs:appinfo/mdm:otherFacets:

 <mdm:constraintNomenclature class="com.foo.MyConstraintNomenclature" />
where com.foo.MyConstraintNomenclature is the fully qualified name of the class implementing this interface. It is also possible to set additional JavaBean properties:
 <mdm:constraintNomenclature class="com.foo.MyConstraintNomenclature">
 	 <param1>...</param1>
 	 <param2>...</param2>
 </mdm:constraintNomenclature>
where param1 and param2 are JavaBean properties of the class specified.

For more information, read JavaBeans specification.

Life-cycle

See Constraint life-cycle.

See Also:
Nomenclature, ConstraintEnumeration, ConstraintOnNull

Method Summary
 Nomenclature getNomenclature(ValueContext aContext)
          Returns a sequence of value-label pairs.
 
Methods inherited from interface com.softwareag.mdm.schema.Constraint
checkOccurrence, setup, toUserDocumentation
 

Method Detail

getNomenclature

public Nomenclature getNomenclature(ValueContext aContext)
                             throws InvalidSchemaException
Returns a sequence of value-label pairs. The values from the underlying enumeration of this constraint.

Throws:
InvalidSchemaException - if some schema's dynamic condition prevents the execution of this method.


(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.