Interface ISlotDefn
-
- All Superinterfaces:
org.eclipse.birt.report.model.metadata.IContainerDefn
public interface ISlotDefn extends org.eclipse.birt.report.model.metadata.IContainerDefnInterface for the definition of a slot within an element. It defines methods to get Meta-data information about a slot within an element. Elements can act as a container, that is one that can contain other elements. A container has one or more slots. Many elements have just one slot, but some (such as the design) have several.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanContain(IElementDefn type)Determines if this slot can contain an element of the given type.booleancanContain(org.eclipse.birt.report.model.core.DesignElement content)Determines if an element can reside within this slot.java.util.List<IElementDefn>getContentElements()Returns the set of element types that can appear in the slot.java.util.List<IElementDefn>getContentExtendedElements()Returns the set of element types that can appear in the slot.java.lang.StringgetDisplayName()Returns the localized display name.java.lang.StringgetDisplayNameID()Returns the message ID for the display name.java.lang.StringgetName()Returns the internal name.java.lang.StringgetSelector()Returns the selector associated with the slot.java.lang.StringgetSince()Return the version in which the slot was introduced.intgetSlotID()Returns the internal slot identifier.java.lang.StringgetXmlName()Return the XML element used to hold slot contents.booleanisMultipleCardinality()Returns the slot cardinality.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the internal name.- Specified by:
getNamein interfaceorg.eclipse.birt.report.model.metadata.IContainerDefn- Returns:
- the name
-
isMultipleCardinality
boolean isMultipleCardinality()
Returns the slot cardinality.- Returns:
- true if the cardinality is multiple, false if it is single
-
getDisplayName
java.lang.String getDisplayName()
Returns the localized display name.- Specified by:
getDisplayNamein interfaceorg.eclipse.birt.report.model.metadata.IContainerDefn- Returns:
- the display name
-
getDisplayNameID
java.lang.String getDisplayNameID()
Returns the message ID for the display name.- Returns:
- the message ID for the display name
-
getSlotID
int getSlotID()
Returns the internal slot identifier.- Returns:
- the slot identifier
-
getContentElements
java.util.List<IElementDefn> getContentElements()
Returns the set of element types that can appear in the slot. Each object in the list is instance ofIElementDefn.- Returns:
- the list of content elements.
-
getContentExtendedElements
java.util.List<IElementDefn> getContentExtendedElements()
Returns the set of element types that can appear in the slot. Each object in the list is instance ofIElementDefn. Extended elements are replaced by actual extension elements.- Returns:
- the list of content elements.
-
canContain
boolean canContain(IElementDefn type)
Determines if this slot can contain an element of the given type.- Specified by:
canContainin interfaceorg.eclipse.birt.report.model.metadata.IContainerDefn- Parameters:
type- the type to test- Returns:
- true if the slot can contain the type, false otherwise
-
canContain
boolean canContain(org.eclipse.birt.report.model.core.DesignElement content)
Determines if an element can reside within this slot.- Specified by:
canContainin interfaceorg.eclipse.birt.report.model.metadata.IContainerDefn- Parameters:
content- the design element to check- Returns:
- true if the element can reside in the slot, false otherwise
-
getSince
java.lang.String getSince()
Return the version in which the slot was introduced. Returns "reserved" if the slot is not yet supported.- Returns:
- version in which the slot was introduced.
-
getXmlName
java.lang.String getXmlName()
Return the XML element used to hold slot contents. If blank, then the slot is anonymous (its contents appear directly inside the container.)- Returns:
- the XML element used to hold slot contents
-
getSelector
java.lang.String getSelector()
Returns the selector associated with the slot. Some selectors end with -n. In this case, the n represents the number 1 though 9, depending on the slot location.- Returns:
- the default style for this slot.
-
-