|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openquark.cal.metadata.CALFeatureMetadata
org.openquark.cal.metadata.ArgumentMetadata
public class ArgumentMetadata
ArgumentMetadata models an argument to a CAL functional agent. It provides support for UI clients that want to assist the user in interactively providing a value for the argument.
| Field Summary | |
|---|---|
static String |
DEFAULT_ARGUMENT_NAME
The default argument name for arguments. |
| Constructor Summary | |
|---|---|
ArgumentMetadata(CALFeatureName featureName,
Locale locale)
Constructor for a new ArgumentMetadata object. |
|
| Method Summary | |
|---|---|
CALFeatureMetadata |
copy(CALFeatureName featureName,
Locale locale)
|
CALFeatureMetadata |
copyTo(CALFeatureMetadata metadata)
Copies this metadata object into the given metadata object. |
CALExpression |
getDefaultValuesExpression()
|
CALExpression |
getPromptingTextExpression()
|
CALExpression |
getValueValidationExpression()
|
void |
loadXML(Node metadataNode)
Loads this metadata object from the given node. |
void |
saveXML(Node parentNode)
Saves this metadata object as a child of the given node. |
void |
setDefaultValuesExpression(CALExpression expression)
|
void |
setDefaultValuesOnly(boolean defaultValuesOnly)
|
void |
setPromptingTextExpression(CALExpression expression)
|
void |
setValueValidationExpression(CALExpression expression)
|
boolean |
useDefaultValuesOnly()
|
| Methods inherited from class org.openquark.cal.metadata.CALFeatureMetadata |
|---|
addRelatedFeature, clearAttribute, clearAttributes, clearRelatedFeatures, copy, getAttribute, getAttributeNames, getAuthor, getCreationDate, getDisplayName, getFeatureName, getLocale, getLongDescription, getModificationDate, getNRelatedFeatures, getNthRelatedFeature, getResourceName, getShortDescription, getVersion, isExpert, isHidden, isPreferred, removeRelatedFeature, setAttribute, setAuthor, setCreationDate, setDisplayName, setExpert, setHidden, setLongDescription, setModificationDate, setPreferred, setShortDescription, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_ARGUMENT_NAME
| Constructor Detail |
|---|
public ArgumentMetadata(CALFeatureName featureName,
Locale locale)
featureName - the feature name of the argument| Method Detail |
|---|
public CALExpression getPromptingTextExpression()
public void setPromptingTextExpression(CALExpression expression)
expression - the expression that returns the prompting text if the argument value is invalidpublic CALExpression getDefaultValuesExpression()
public void setDefaultValuesExpression(CALExpression expression)
expression - the expression that gives the list of default valuespublic CALExpression getValueValidationExpression()
public void setValueValidationExpression(CALExpression expression)
expression - the expression to use to validate values entered for this argumentpublic boolean useDefaultValuesOnly()
public void setDefaultValuesOnly(boolean defaultValuesOnly)
defaultValuesOnly - whether to restrict an argument's value to one from the list of default values.
public CALFeatureMetadata copy(CALFeatureName featureName,
Locale locale)
copy in class CALFeatureMetadatapublic CALFeatureMetadata copyTo(CALFeatureMetadata metadata)
CALFeatureMetadata
copyTo in class CALFeatureMetadatametadata - the metadata object to copy toCALFeatureMetadata.copyTo(org.openquark.cal.metadata.CALFeatureMetadata)
public void loadXML(Node metadataNode)
throws org.openquark.util.xml.BadXMLDocumentException
CALFeatureMetadata
loadXML in class CALFeatureMetadatametadataNode - the node from which to start loading
org.openquark.util.xml.BadXMLDocumentExceptionCALFeatureMetadata.loadXML(org.w3c.dom.Node)public void saveXML(Node parentNode)
CALFeatureMetadata
saveXML in class CALFeatureMetadataparentNode - the node to save the metadata object toCALFeatureMetadata.saveXML(org.w3c.dom.Node)
|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||