From df40e73b6381a928d31558b13779da66d48bbfde Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 16 Apr 2003 16:21:18 +0000 Subject: [PATCH] Test merge from helma_1_2_4 to check for keyword expansion problems --- .../framework/demo/SimplePathElement.java | 57 +++++++++++-------- 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/src/helma/framework/demo/SimplePathElement.java b/src/helma/framework/demo/SimplePathElement.java index b18b8286..96695810 100644 --- a/src/helma/framework/demo/SimplePathElement.java +++ b/src/helma/framework/demo/SimplePathElement.java @@ -1,5 +1,18 @@ -// SimplePathElement.java -// Copyright Hannes Wallnöfer 2001 +/* + * Helma License Notice + * + * The contents of this file are subject to the Helma License + * Version 2.0 (the "License"). You may not use this file except in + * compliance with the License. A copy of the License is available at + * http://adele.helma.org/download/helma/license.txt + * + * Copyright 1998-2003 Helma Software. All Rights Reserved. + * + * $RCSfile$ + * $Author$ + * $Revision$ + * $Date$ + */ package helma.framework.demo; @@ -9,9 +22,7 @@ import helma.framework.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. */ - public class SimplePathElement implements IPathElement { - String name; String prototype; IPathElement parent; @@ -19,56 +30,54 @@ public class SimplePathElement implements IPathElement { /** * Constructor for the root element. */ - public SimplePathElement () { - name = "root"; - prototype = "root"; - parent = null; + public SimplePathElement() { + name = "root"; + prototype = "root"; + parent = null; } /** * Constructor for non-root elements. */ - public SimplePathElement (String n, IPathElement p) { - name = n; - prototype = "hopobject"; - parent = p; + public SimplePathElement(String n, IPathElement p) { + name = n; + prototype = "hopobject"; + parent = p; } /** * Returns a child element for this object, creating it on the fly. */ - public IPathElement getChildElement (String n) { - return new SimplePathElement (n, this); + public IPathElement getChildElement(String n) { + return new SimplePathElement(n, this); } /** * Returns this object's parent element */ - public IPathElement getParentElement () { - return parent; + public IPathElement getParentElement() { + return parent; } /** * Returns the element name to be used for this object. */ - public String getElementName () { - return name; + public String getElementName() { + return name; } /** * 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. */ - public String getPrototype () { - return prototype; + public String getPrototype() { + return prototype; } /** * Returns a string representation of this element. */ - public String toString () { - return "SimplePathElement "+name; + public String toString() { + return "SimplePathElement " + name; } - } -