Package org.eclipse.ui.intro.config
Class IntroElement
java.lang.Object
org.eclipse.ui.intro.config.IntroElement
Used to provide children of the computed gruops while constructing intro content. Clients provide
instances of this class from
IntroConfigurer
to dynamically complete the intro
content. Attribute and element names, as well as content model must match the intro
schema.- Since:
- 3.2
-
Constructor Summary
ConstructorDescriptionIntroElement
(String name) Creates a new intro element with the provided name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(IntroElement child) Adds a child to this element.boolean
getAttribute
(String name) Returns the value of the attribute with a given name.Returns the names of all the attributes defined in this element.Returns the children of this element.getName()
Returns the name of the element.getValue()
Returns the value of the element.void
setAttribute
(String name, String value) Sets the value of the named attribute.void
Sets the value of the element.
-
Constructor Details
-
IntroElement
Creates a new intro element with the provided name.- Parameters:
name
- the name of the new intro element
-
-
Method Details
-
setAttribute
Sets the value of the named attribute.- Parameters:
name
- attribute namevalue
- attribute value
-
getAttribute
Returns the value of the attribute with a given name.- Parameters:
name
- the attribute name- Returns:
- value of the attribute with a given name or
null
if not set.
-
getAttributes
Returns the names of all the attributes defined in this element.- Returns:
- an enumeration of all the element names
-
getName
Returns the name of the element.- Returns:
- name of the element
-
getValue
Returns the value of the element.- Returns:
- value of the element or
null
if not set.
-
setValue
Sets the value of the element.- Parameters:
value
- the value of this element
-
addChild
Adds a child to this element.- Parameters:
child
- the new child of this element
-
getChildren
Returns the children of this element.- Returns:
- an array of child elements or an empty array of there are no children.
-
equals
-