public class LinkedPropertyExtension extends ModelExtensionObject
| Constructor and Description |
|---|
LinkedPropertyExtension(java.lang.String pId,
java.lang.String pLabel,
java.lang.String pCategory,
PropertyProviderExtension pProvider,
boolean pRequiresResourceID,
boolean pCanSetValue,
java.lang.String pBooleanTrueValue,
java.lang.String pBooleanFalseValue,
ETypes pType)
Basic constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSetValue()
Gets whether the property provider can set values for this property.
|
java.lang.String |
getCategory()
Gets the category of the property.
|
java.lang.String |
getFalseValue()
Gets the
false value of the linked property. |
PropertyProviderExtension |
getProvider()
Gets the property provider extension.
|
ModelPropertyExtension |
getResourceIdentifierProperty()
Gets the referenced resource identifier
ModelPropertyExtension. |
java.lang.String |
getTrueValue()
Gets the
true value of the linked property. |
ETypes |
getType()
Gets the type of the linked property.
|
boolean |
isRequiresResourceIdentifier()
Gets whether the property requires a resource identifier to be resolved.
|
void |
setResourceIdentifierProperty(ModelPropertyExtension pModelProperty)
Sets the resource identifier
ModelPropertyExtension. |
getFunctionPackageExtension, getHelpContextId, getID, getLabel, isDeprecated, setDeprecated, setHelpContextId, toStringpublic LinkedPropertyExtension(java.lang.String pId,
java.lang.String pLabel,
java.lang.String pCategory,
PropertyProviderExtension pProvider,
boolean pRequiresResourceID,
boolean pCanSetValue,
java.lang.String pBooleanTrueValue,
java.lang.String pBooleanFalseValue,
ETypes pType)
pId - the IDpLabel - the labelpCategory - The category of the property. Will create a sub menu in the model editor at runtime (in the "New Child" context menu). Properties with
the same category will be added to the same sub menu.pProvider - the PropertyProviderExtensionpRequiresResourceID - Whether a resource identifier is mandatory for resolving the property value.pCanSetValue - Whether the property provider can set the value of this property.pBooleanTrueValue - true value. Can be null.pBooleanFalseValue - false value. Can be null.pType - type of the linked propertypublic ETypes getType()
Property.getType()public java.lang.String getTrueValue()
true value of the linked property. Only relevant, if the
property type is ETypes.BOOLEAN.true value. Can be null if
not explicitly set.Property.getTrueValue()public java.lang.String getFalseValue()
false value of the linked property. Only relevant, if the
property type is ETypes.BOOLEAN.false value. Can be null if
not explicitly set.Property.getFalseValue()public java.lang.String getCategory()
null if no category was specifiedpublic boolean isRequiresResourceIdentifier()
true if the property requires a resource identifier
to be resolved.public PropertyProviderExtension getProvider()
public boolean canSetValue()
true if the provider is able to set values for this
property, otherwise falsepublic void setResourceIdentifierProperty(ModelPropertyExtension pModelProperty)
ModelPropertyExtension.pModelProperty - the model property extension to be referencedpublic ModelPropertyExtension getResourceIdentifierProperty()
ModelPropertyExtension.null,
if the reference has not been set or was invalidCopyright © 2015 Micro Focus GmbH. All rights reserved.