public class ModelExtensionAttribute extends AbstractModelExtensionAtribute
| Constructor and Description |
|---|
ModelExtensionAttribute(java.lang.String pID,
java.lang.String pLabel,
java.lang.String pCategory,
java.lang.String pDescription,
boolean pModelLabel,
EModelExtensionAttributeType pType,
java.lang.String pDefaultValue,
java.lang.String pStaticValue,
boolean pMandatory,
java.util.List<java.lang.String> pRestrictions,
FunctionPackageExtension pFunctionPackage)
Advanced constructor.
|
ModelExtensionAttribute(java.lang.String pID,
java.lang.String pLabel,
java.lang.String pCategory,
java.lang.String pDescription,
boolean pModelLabel,
EModelExtensionAttributeType pType,
java.lang.String pDefaultValue,
java.lang.String pStaticValue,
boolean pMandatory,
java.util.List<java.lang.String> pRestrictions,
ICustomRestriction<?> pCustomRestriction,
FunctionPackageExtension pFunctionPackage)
Advanced constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ICustomRestriction<?> |
getCustomRestriction()
Gets the
ICustomRestriction |
java.lang.String |
getDefaultValue()
Gets the default value.
|
java.util.List<java.lang.String> |
getRestrictions()
Gets a list of valid attribute values.
|
java.lang.String |
getStaticValue()
Gets the static value.
|
EModelExtensionAttributeType |
getType()
Gets the type.
|
java.lang.String |
toString() |
getEnabledCondition, isModelLabel, setEnabledConditiongetCategory, getDescription, isMandatory, isMultiLine, setMultiLinegetFunctionPackageExtension, getHelpContextId, getID, getLabel, isDeprecated, setDeprecated, setHelpContextIdpublic ModelExtensionAttribute(java.lang.String pID,
java.lang.String pLabel,
java.lang.String pCategory,
java.lang.String pDescription,
boolean pModelLabel,
EModelExtensionAttributeType pType,
java.lang.String pDefaultValue,
java.lang.String pStaticValue,
boolean pMandatory,
java.util.List<java.lang.String> pRestrictions,
FunctionPackageExtension pFunctionPackage)
pID - the ID the attributepLabel - the labelpCategory - the categorypDescription - the attribute descriptionpModelLabel - whether this should be added to the model editor label of the
componentpType - the attribute typepDefaultValue - the default valuepStaticValue - the static value. If not null, the attribute will
always have this value which will not be changeable e.g. in
the model editor.pMandatory - whether the attribute is mandatorypRestrictions - the restrictionspFunctionPackage - the defining function packagepublic ModelExtensionAttribute(java.lang.String pID,
java.lang.String pLabel,
java.lang.String pCategory,
java.lang.String pDescription,
boolean pModelLabel,
EModelExtensionAttributeType pType,
java.lang.String pDefaultValue,
java.lang.String pStaticValue,
boolean pMandatory,
java.util.List<java.lang.String> pRestrictions,
ICustomRestriction<?> pCustomRestriction,
FunctionPackageExtension pFunctionPackage)
pID - the ID the attributepLabel - the labelpCategory - the categorypDescription - the attribute descriptionpModelLabel - whether this should be added to the model editor label of the
componentpType - the attribute typepDefaultValue - the default valuepStaticValue - the static value. If not null, the attribute will
always have this value which will not be changeable e.g. in
the model editor.pMandatory - whether the attribute is mandatorypRestrictions - the restrictionspCustomRestriction - the custom restriction attribute. See
ICustomRestriction. Can be null, if no
custom restriction was defined.pFunctionPackage - the defining function packagepublic java.lang.String getStaticValue()
public java.lang.String getDefaultValue()
public EModelExtensionAttributeType getType()
public java.util.List<java.lang.String> getRestrictions()
null)public ICustomRestriction<?> getCustomRestriction()
ICustomRestrictionICustomRestriction. Can be null if none
was set.public java.lang.String toString()
toString in class ModelExtensionObjectCopyright © 2015 Micro Focus GmbH. All rights reserved.