Class PropertyDefinition
- java.lang.Object
-
- org.eclipse.birt.report.model.api.extension.PropertyDefinition
-
- All Implemented Interfaces:
IPropertyDefinition
public abstract class PropertyDefinition extends java.lang.Object implements IPropertyDefinition
Extension adapter class for the IPropertyDefintion. By default, the extension property definition has no resource key for the display name, no choices, no members, no default value, is not a list and is not in any property group of the extension. At the same time, the subclasses should override the some getters about the required name of the property, required display name key of the property and the required type,which is one of those defined inPropertyType.
-
-
Constructor Summary
Constructors Constructor Description PropertyDefinition()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.List<IChoiceDefinition>getChoices()Returns a list of choices if the property is a choice (type is CHOICE_TYPE).java.lang.ObjectgetDefaultValue()Returns the default value for the property.java.lang.StringgetDisplayNameID()Returns the resource key for the localized display name of the property.java.lang.StringgetGroupNameID()Returns the resource key for display name of the property group.java.util.List<IPropertyDefinition>getMembers()Returns a list of member definitions if the property is a structure (type is TBD).IMethodInfogetMethodInfo()Returns the method information of this property.abstract java.lang.StringgetName()Returns the internal name of the property.abstract intgetType()Returns the property type using one of the types defined in thePropertyTypeclass.booleanisList()Returns whether this property represents a list of properties instead of a single property.booleanisReadOnly()Determines whether this property is read-only or not.booleanisVisible()Determines whether this property is visible in property viewer.
-
-
-
Method Detail
-
getGroupNameID
public java.lang.String getGroupNameID()
Description copied from interface:IPropertyDefinitionReturns the resource key for display name of the property group. Property groups are used in the generic property sheet to organize properties. If the resource key is null, then no group is used.- Specified by:
getGroupNameIDin interfaceIPropertyDefinition- Returns:
- the optional resource key for property group name
-
getName
public abstract java.lang.String getName()
Description copied from interface:IPropertyDefinitionReturns the internal name of the property. This is a non-localized, unique name used in the get/set property methods. It is required. BIRT encourages names that match the BIRT property syntax: propName, so that the properties are easy to use in scripts.- Specified by:
getNamein interfaceIPropertyDefinition- Returns:
- the internal property name
-
getDisplayNameID
public java.lang.String getDisplayNameID()
Description copied from interface:IPropertyDefinitionReturns the resource key for the localized display name of the property. This is the name that appears in the property sheet UI. It is optional. If omitted, the internal name will be displayed instead.- Specified by:
getDisplayNameIDin interfaceIPropertyDefinition- Returns:
- the optional resource key for the localized display name of the property
-
getType
public abstract int getType()
Description copied from interface:IPropertyDefinitionReturns the property type using one of the types defined in thePropertyTypeclass. It is required. If the model does not provide a suitable type, then either map the property to one of the supported types, or don't expose it though the generic property mechanism.- Specified by:
getTypein interfaceIPropertyDefinition- Returns:
- the property type using one of the model's types
-
isList
public boolean isList()
Description copied from interface:IPropertyDefinitionReturns whether this property represents a list of properties instead of a single property.- Specified by:
isListin interfaceIPropertyDefinition- Returns:
- true if the property is a list, false if not
-
getChoices
public java.util.List<IChoiceDefinition> getChoices()
Description copied from interface:IPropertyDefinitionReturns a list of choices if the property is a choice (type is CHOICE_TYPE). Should return null for non-choice properties.- Specified by:
getChoicesin interfaceIPropertyDefinition- Returns:
- a list of
IChoiceDefinitionobjects
-
getMethodInfo
public IMethodInfo getMethodInfo()
Description copied from interface:IPropertyDefinitionReturns the method information of this property.- Specified by:
getMethodInfoin interfaceIPropertyDefinition- Returns:
- the method information of this property. Return null, if this property is not a method property.
-
getDefaultValue
public java.lang.Object getDefaultValue()
Description copied from interface:IPropertyDefinitionReturns the default value for the property. Needed only if the element supports styles or inheritance. Not needed otherwise. No default is needed for a structure or list property.- Specified by:
getDefaultValuein interfaceIPropertyDefinition- Returns:
- the default value of the property
-
getMembers
public java.util.List<IPropertyDefinition> getMembers()
Description copied from interface:IPropertyDefinitionReturns a list of member definitions if the property is a structure (type is TBD). Should return null for non-structure properties.- Specified by:
getMembersin interfaceIPropertyDefinition- Returns:
- the list of members as a collection of
IPropertyDefinitionobjects
-
isReadOnly
public boolean isReadOnly()
Description copied from interface:IPropertyDefinitionDetermines whether this property is read-only or not. If this property is read only and can not been edited, return true; otherwise return false.- Specified by:
isReadOnlyin interfaceIPropertyDefinition- Returns:
- true if this property is read-only, otherwise false
-
isVisible
public boolean isVisible()
Description copied from interface:IPropertyDefinitionDetermines whether this property is visible in property viewer. If this property is visible in the property viewer, return true; otherwise false.- Specified by:
isVisiblein interfaceIPropertyDefinition- Returns:
- true if this property is visible in the property viewer, otherwise false
-
-