public class IntroElement
extends java.lang.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(java.lang.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(java.lang.Object obj) |
java.lang.String |
getAttribute(java.lang.String name)
Returns the value of the attribute with a given name.
|
java.util.Enumeration<java.lang.String> |
getAttributes()
Returns the names of all the attributes defined in this element.
|
IntroElement[] |
getChildren()
Returns the children of this element.
|
java.lang.String |
getName()
Returns the name of the element.
|
java.lang.String |
getValue()
Returns the value of the element.
|
void |
setAttribute(java.lang.String name,
java.lang.String value)
Sets the value of the named attribute.
|
void |
setValue(java.lang.String value)
Sets the value of the element.
|
public IntroElement(java.lang.String name)
name - the name of the new intro elementpublic void setAttribute(java.lang.String name,
java.lang.String value)
name - attribute namevalue - attribute valuepublic java.lang.String getAttribute(java.lang.String name)
name - the attribute namenull if not set.public java.util.Enumeration<java.lang.String> getAttributes()
public java.lang.String getName()
public java.lang.String getValue()
null if not set.public void setValue(java.lang.String value)
value - the value of this elementpublic void addChild(IntroElement child)
child - the new child of this elementpublic IntroElement[] getChildren()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Object
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.