org.infolayer.templates.html
Class HtmlUtils

java.lang.Object
  extended byorg.infolayer.templates.html.HtmlUtils

public class HtmlUtils
extends java.lang.Object

Author:
Stefan Haustein Contains several write methods

Field Summary
static java.lang.String XHTML
           
 
Constructor Summary
HtmlUtils()
           
 
Method Summary
static java.lang.String getBinaryName(UmlObject o, UmlProperty prop, java.lang.String format)
           
static void hiddenInput(XmlSerializer xw, java.lang.String name, java.lang.String value)
          Writes a hidden input field with the given name and value.
static void writeAny(XmlSerializer xw, IlRequest context, java.lang.Object object, java.lang.String format)
           
static void writeBinary(XmlSerializer xw, IlRequest context, UmlObject o, UmlProperty prop, java.lang.String format, java.lang.String name)
          Please note: In contrast to most other write methods, writeBinary is not a special case of writeAny, since it requires the "owning" object to generate a link.
static void writeClass(XmlSerializer xw, IlRequest context, UmlClass umlClass)
           
static void writeEnumerable(XmlSerializer xw, IlRequest context, OclCollection ee, boolean ordered, java.lang.String format)
           
static void writeLabel(XmlSerializer xw, IlRequest context, Feature part)
          Writes the label for a part.
static void writeLink(XmlSerializer xw, IlUrl url, java.lang.String text)
           
static void writeLink(XmlSerializer xw, java.lang.String url, java.lang.String text)
           
static void writeObject(XmlSerializer xw, IlRequest context, UmlObject object, java.lang.String format)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XHTML

public static final java.lang.String XHTML
See Also:
Constant Field Values
Constructor Detail

HtmlUtils

public HtmlUtils()
Method Detail

writeAny

public static void writeAny(XmlSerializer xw,
                            IlRequest context,
                            java.lang.Object object,
                            java.lang.String format)
                     throws java.io.IOException
Throws:
java.io.IOException

writeClass

public static void writeClass(XmlSerializer xw,
                              IlRequest context,
                              UmlClass umlClass)
                       throws java.io.IOException
Throws:
java.io.IOException

writeEnumerable

public static void writeEnumerable(XmlSerializer xw,
                                   IlRequest context,
                                   OclCollection ee,
                                   boolean ordered,
                                   java.lang.String format)
                            throws java.io.IOException
Throws:
java.io.IOException

hiddenInput

public static void hiddenInput(XmlSerializer xw,
                               java.lang.String name,
                               java.lang.String value)
                        throws java.io.IOException
Writes a hidden input field with the given name and value. If value is null, the input field is not written at all

Throws:
java.io.IOException

writeLabel

public static void writeLabel(XmlSerializer xw,
                              IlRequest context,
                              Feature part)
                       throws java.io.IOException
Writes the label for a part. Does not include the surrounding table cell.

Throws:
java.io.IOException

writeLink

public static void writeLink(XmlSerializer xw,
                             IlUrl url,
                             java.lang.String text)
                      throws java.io.IOException
Throws:
java.io.IOException

writeLink

public static void writeLink(XmlSerializer xw,
                             java.lang.String url,
                             java.lang.String text)
                      throws java.io.IOException
Throws:
java.io.IOException

writeObject

public static void writeObject(XmlSerializer xw,
                               IlRequest context,
                               UmlObject object,
                               java.lang.String format)
                        throws java.io.IOException
Throws:
java.io.IOException

getBinaryName

public static java.lang.String getBinaryName(UmlObject o,
                                             UmlProperty prop,
                                             java.lang.String format)

writeBinary

public static void writeBinary(XmlSerializer xw,
                               IlRequest context,
                               UmlObject o,
                               UmlProperty prop,
                               java.lang.String format,
                               java.lang.String name)
                        throws java.io.IOException
Please note: In contrast to most other write methods, writeBinary is not a special case of writeAny, since it requires the "owning" object to generate a link. Even for embedded binaries, it is not possible to embed the data without needing an additional HTTP request

Throws:
java.io.IOException