public interface IElementDefn extends IObjectDefn
Modifier and Type | Method and Description |
---|---|
boolean |
allowsUserProperties()
Determines if this element allows user properties.
|
boolean |
canContain(int slot,
IElementDefn type)
Reports whether the given slot can contain elements of the given type.
|
boolean |
canExtend()
Returns whether elements of this class can be extended.
|
java.util.List<IElementPropertyDefn> |
getContents()
Returns the property definitions for this element that can hold other
elements.
|
java.util.List<IElementPropertyDefn> |
getExpressions()
Returns the expression property definition list of this element
definition and parent definition.
|
java.util.List<java.lang.String> |
getGroupNames()
Returns a list of the localized property group names defined by this
element and its parents.
|
java.util.List<IElementPropertyDefn> |
getLocalExpressions()
Returns the expression property definition list of this element
definition.
|
java.util.List<IElementPropertyDefn> |
getLocalMethods()
Returns the method definition list of this element definition.
|
java.util.List<IElementPropertyDefn> |
getLocalProperties()
Returns properties definitions as a list.
|
java.util.List<IElementPropertyDefn> |
getMethods()
Returns the method definition list of this element definition and parent
definition.
|
int |
getNameOption()
Gets the name option that says how the element type handles names.
|
java.util.List<IElementPropertyDefn> |
getProperties()
Returns the properties defined on this element.
|
IElementPropertyDefn |
getProperty(java.lang.String propName)
Gets a property definition given a property name.
|
ISlotDefn |
getSlot(int slotID)
Returns the meta-data definition for a slot given its numeric slot
identifier.
|
int |
getSlotCount()
Returns the number of slots in this container.
|
boolean |
hasSlot(int slotID)
Returns whether this element has the requested slot given the numeric
identifier of the slot.
|
boolean |
hasStyle()
Indicates if this element has a style.
|
boolean |
isContainer()
Determines if this element acts as a container.
|
boolean |
isExtendedElement()
Justifies whether this definition is extension element.
|
boolean |
isKindOf(IElementDefn type)
Determines if the given element type is a kind of this type.
|
boolean |
isPropertyReadOnly(java.lang.String propName)
Checks whether the property value is read-only in the property sheet.
|
boolean |
isPropertyVisible(java.lang.String propName)
Checks whether the property is visible to the property sheet.
|
findProperty, getDisplayName, getDisplayNameKey, getName, getPropertyIterator, propertiesIterator
boolean hasStyle()
java.util.List<IElementPropertyDefn> getProperties()
IElementPropertyDefn
.java.util.List<IElementPropertyDefn> getLocalProperties()
IElementPropertyDefn
.IElementPropertyDefn getProperty(java.lang.String propName)
propName
- The name of the property to get.java.util.List<IElementPropertyDefn> getMethods()
IElementPropertyDefn
.java.util.List<IElementPropertyDefn> getLocalMethods()
IElementPropertyDefn
.java.util.List<IElementPropertyDefn> getExpressions()
IElementPropertyDefn
.java.util.List<IElementPropertyDefn> getLocalExpressions()
IElementPropertyDefn
.java.util.List<java.lang.String> getGroupNames()
The UI uses property groups to organize properties within the generic property sheet.
boolean allowsUserProperties()
boolean isContainer()
int getSlotCount()
boolean hasSlot(int slotID)
slotID
- The slotID to check.ISlotDefn getSlot(int slotID)
slotID
- The slot identifier.java.util.List<IElementPropertyDefn> getContents()
IPropertyDefn
.boolean canContain(int slot, IElementDefn type)
slot
- The slot to check.type
- The element type to check.boolean canExtend()
int getNameOption()
MetaDataConstants
:
MetaDataConstants.NO_NAME
-- The element cannot have a name.
(Probably not used.)MetaDataConstants.OPTIONAL_NAME
--
The element can optionally have a name, but a name is not required.MetaDataConstants.REQUIRED_NAME
-- The element must have a
name.boolean isPropertyVisible(java.lang.String propName)
propName
- the property nametrue
if the element definition has the property
definition and it is visible, false
otherwise.boolean isPropertyReadOnly(java.lang.String propName)
propName
- the property nametrue
if the element definition has the property
definition and it is readonly, false
otherwise.boolean isKindOf(IElementDefn type)
type
- The element type to check.boolean isExtendedElement()
Copyright © 2008 Actuate Corp. All rights reserved.