aboutsummaryrefslogtreecommitdiff
path: root/id.server/src/at/gv/egovernment/moa/id/auth/builder/Builder.java
diff options
context:
space:
mode:
author(no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d>2005-06-24 11:00:16 +0000
committer(no author) <(no author)@d688527b-c9ab-4aba-bd8d-4036d912da1d>2005-06-24 11:00:16 +0000
commitc87e8ec82b5a85596bdab1adba86972cd88b96c5 (patch)
treee14cf111b5adc386a8f53c457623864825945111 /id.server/src/at/gv/egovernment/moa/id/auth/builder/Builder.java
parent4914ffa0d889ed525229c0715686b26e30cc1343 (diff)
downloadmoa-id-spss-c87e8ec82b5a85596bdab1adba86972cd88b96c5.tar.gz
moa-id-spss-c87e8ec82b5a85596bdab1adba86972cd88b96c5.tar.bz2
moa-id-spss-c87e8ec82b5a85596bdab1adba86972cd88b96c5.zip
This commit was manufactured by cvs2svn to create tagtags/Build-SPSS-1_2_1
'Build-SPSS-1_2_1'. git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/tags/Build-SPSS-1_2_1@371 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id.server/src/at/gv/egovernment/moa/id/auth/builder/Builder.java')
-rw-r--r--id.server/src/at/gv/egovernment/moa/id/auth/builder/Builder.java30
1 files changed, 0 insertions, 30 deletions
diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/builder/Builder.java b/id.server/src/at/gv/egovernment/moa/id/auth/builder/Builder.java
deleted file mode 100644
index e5bbaa585..000000000
--- a/id.server/src/at/gv/egovernment/moa/id/auth/builder/Builder.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package at.gv.egovernment.moa.id.auth.builder;
-
-import at.gv.egovernment.moa.id.BuildException;
-
-/**
- * Base class for HTML/XML builders providing commonly useful functions.
- *
- * @author Paul Ivancsics
- * @version $Id$
- */
-public class Builder {
-
- /**
- * Replaces a special tag in an XML or HTML template by a value.
- * @param htmlTemplate template
- * @param tag special tag
- * @param value value replacing the tag
- * @return XML or HTML code, the tag replaced
- * @throws BuildException when template does not contain the tag
- */
- protected String replaceTag(String template, String tag, String value) throws BuildException {
- int index = template.indexOf(tag);
- if (index < 0)
- throw new BuildException(
- "builder.01",
- new Object[] {"&lt;" + tag.substring(1, tag.length() - 1) + "&gt;"});
- return template.substring(0, index) + value + template.substring(index + tag.length());
- }
-
-}