com.arsdigita.bebop
Class ElementComponent
java.lang.Object
com.arsdigita.bebop.Completable
com.arsdigita.bebop.SimpleComponent
com.arsdigita.bebop.ElementComponent
- All Implemented Interfaces:
- Cloneable, Component, Lockable
- public class ElementComponent
- extends SimpleComponent
A component that gets its text entirely from a single XSL element.
- Author:
- Sameer Ajmani
Constructor Summary |
ElementComponent(String name,
String uri)
Constructs an ElementComponent that uses the element with the given
name under the given XSL namespace URI. |
Method Summary |
void |
generateXML(PageState state,
Element parent)
Constructs a new element with the name and namespace given in this
component's constructor, and adds the element to the parent element. |
Methods inherited from class com.arsdigita.bebop.SimpleComponent |
children, clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, register, register, respond, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible |
versionId
public static final String versionId
- See Also:
- Constant Field Values
ElementComponent
public ElementComponent(String name,
String uri)
- Constructs an ElementComponent that uses the element with the given
name under the given XSL namespace URI.
- Parameters:
name
- the name of the element to useuri
- the URI of the XSL namespace
generateXML
public void generateXML(PageState state,
Element parent)
- Constructs a new element with the name and namespace given in this
component's constructor, and adds the element to the parent element.
- Specified by:
generateXML
in interface Component
- Overrides:
generateXML
in class SimpleComponent
- Parameters:
state
- the current page stateparent
- the parent element for this new element
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC