summaryrefslogtreecommitdiff
path: root/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOStaticElement.java
diff options
context:
space:
mode:
authorBenjamin Culkin <scorpress@gmail.com>2024-05-20 17:58:16 -0400
committerBenjamin Culkin <scorpress@gmail.com>2024-05-20 17:58:16 -0400
commit40a9d99496e098562f090fb7ffce9e749011b131 (patch)
tree437df24d65470582e943e494a52db8ed65a881ae /projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOStaticElement.java
parentff072dfe782f6f22123cd4ba050828d35c0d0fbd (diff)
Formatting pass
Diffstat (limited to 'projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOStaticElement.java')
-rw-r--r--projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOStaticElement.java68
1 files changed, 30 insertions, 38 deletions
diff --git a/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOStaticElement.java b/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOStaticElement.java
index 308cd20..29a06c4 100644
--- a/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOStaticElement.java
+++ b/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOStaticElement.java
@@ -19,52 +19,44 @@ License along with this library; if not, see http://www.gnu.org
package net.wotonomy.web;
/**
-* This class represents a static portion of a web page.
-* Package access only, as it is not in the specification.
-*
-* @author michael@mpowers.net
-* @author $Author: cgruber $
-* @version $Revision: 893 $
-*/
-class WOStaticElement extends WOElement
-{
+ * This class represents a static portion of a web page. Package access only, as
+ * it is not in the specification.
+ *
+ * @author michael@mpowers.net
+ * @author $Author: cgruber $
+ * @version $Revision: 893 $
+ */
+class WOStaticElement extends WOElement {
String content;
/**
- * Default constructor.
- */
- public WOStaticElement()
- {
+ * Default constructor.
+ */
+ public WOStaticElement() {
content = null;
}
-
+
/**
- * Returns a static element representing the specified content.
- */
- public WOStaticElement( String aContentString )
- {
+ * Returns a static element representing the specified content.
+ */
+ public WOStaticElement(String aContentString) {
this();
content = aContentString;
}
- /**
- * Overridden to append the content string..
- */
- public void appendToResponse (WOResponse aResponse, WOContext aContext)
- {
- aResponse.appendContentString( content );
- }
-
-
- public WOResponse generateResponse()
- {
- WOResponse r = new WOResponse();
- if (content != null)
- {
- r.appendContentString(content);
- }
- return r;
- }
-
-
+ /**
+ * Overridden to append the content string..
+ */
+ public void appendToResponse(WOResponse aResponse, WOContext aContext) {
+ aResponse.appendContentString(content);
+ }
+
+ public WOResponse generateResponse() {
+ WOResponse r = new WOResponse();
+ if (content != null) {
+ r.appendContentString(content);
+ }
+ return r;
+ }
+
}