org.eclipse.birt.report.model.api.metadata
Interface ISlotDefn


public interface ISlotDefn

Interface 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
 boolean canContain(org.eclipse.birt.report.model.core.DesignElement content)
          Determines if an element can reside within this slot.
 boolean canContain(IElementDefn type)
          Determines if this slot can contain an element of the given type.
 java.util.List getContentElements()
          Returns the set of element types that can appear in the slot.
 java.util.List getContentExtendedElements()
          Returns the set of element types that can appear in the slot.
 java.lang.String getDisplayName()
          Returns the localized display name.
 java.lang.String getDisplayNameID()
          Returns the message ID for the display name.
 java.lang.String getName()
          Returns the internal name.
 java.lang.String getSelector()
          Returns the selector associated with the slot.
 java.lang.String getSince()
          Return the version in which the slot was introduced.
 int getSlotID()
          Returns the internal slot identifier.
 java.lang.String getXmlName()
          Return the XML element used to hold slot contents.
 boolean isMultipleCardinality()
          Returns the slot cardinality.
 

Method Detail

getName

public java.lang.String getName()
Returns the internal name.

Returns:
the name

isMultipleCardinality

public boolean isMultipleCardinality()
Returns the slot cardinality.

Returns:
true if the cardinality is multiple, false if it is single

getDisplayName

public java.lang.String getDisplayName()
Returns the localized display name.

Returns:
the display name

getDisplayNameID

public java.lang.String getDisplayNameID()
Returns the message ID for the display name.

Returns:
the message ID for the display name

getSlotID

public int getSlotID()
Returns the internal slot identifier.

Returns:
the slot identifier

getContentElements

public java.util.List getContentElements()
Returns the set of element types that can appear in the slot. Each object in the list is instance of IElementDefn.

Returns:
the list of content elements.

getContentExtendedElements

public java.util.List getContentExtendedElements()
Returns the set of element types that can appear in the slot. Each object in the list is instance of IElementDefn. Extended elements are replaced by actual extension elements.

Returns:
the list of content elements.

canContain

public boolean canContain(IElementDefn type)
Determines if this slot can contain an element of the given type.

Parameters:
type - the type to test
Returns:
true if the slot can contain the type, false otherwise

canContain

public boolean canContain(org.eclipse.birt.report.model.core.DesignElement content)
Determines if an element can reside within this slot.

Parameters:
content - the design element to check
Returns:
true if the element can reside in the slot, false otherwise

getSince

public 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

public 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

public 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.


Copyright © 2005 Actuate Corp. All rights reserved.