public class IntroElement extends Object
IntroConfigurer
to dynamically complete the intro
content. Attribute and element names, as well as content model must match the intro
schema.Constructor and Description |
---|
IntroElement(String name)
Creates a new intro element with the provided name.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(IntroElement child)
Adds a child to this element.
|
boolean |
equals(Object obj) |
String |
getAttribute(String name)
Returns the value of the attribute with a given name.
|
Enumeration |
getAttributes()
Returns the names of all the attributes defined in this element.
|
IntroElement[] |
getChildren()
Returns the children of this element.
|
String |
getName()
Returns the name of the element.
|
String |
getValue()
Returns the value of the element.
|
void |
setAttribute(String name,
String value)
Sets the value of the named attribute.
|
void |
setValue(String value)
Sets the value of the element.
|
public IntroElement(String name)
name
- the name of the new intro elementpublic void setAttribute(String name, String value)
name
- attribute namevalue
- attribute valuepublic String getAttribute(String name)
name
- the attribute namenull
if not set.public Enumeration getAttributes()
public String getName()
public String getValue()
null
if not set.public void setValue(String value)
value
- the value of this elementpublic void addChild(IntroElement child)
child
- the new child of this elementpublic IntroElement[] getChildren()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.