Package helma.framework.demo
Class SimplePathElement
java.lang.Object
helma.framework.demo.SimplePathElement
- All Implemented Interfaces:
IPathElement
This is an example implementation for the helma.framework.IPathElement interface.
It creates any child element which is requested on the fly without ever asking.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the root element.Constructor for non-root elements. -
Method Summary
Modifier and TypeMethodDescriptionReturns a child element for this object, creating it on the fly.Returns the element name to be used for this object.Returns this object's parent elementReturns the name of the scripting prototype to be used for this object.toString()
Returns a string representation of this element.
-
Constructor Details
-
SimplePathElement
public SimplePathElement()Constructor for the root element. -
SimplePathElement
Constructor for non-root elements.
-
-
Method Details
-
getChildElement
Returns a child element for this object, creating it on the fly.- Specified by:
getChildElement
in interfaceIPathElement
-
getParentElement
Returns this object's parent element- Specified by:
getParentElement
in interfaceIPathElement
-
getElementName
Returns the element name to be used for this object.- Specified by:
getElementName
in interfaceIPathElement
-
getPrototype
Returns the name of the scripting prototype to be used for this object. This will be "root" for the root element and "hopobject for everything else.- Specified by:
getPrototype
in interfaceIPathElement
-
toString
Returns a string representation of this element.
-