Gridarta Editor
net.sf.gridarta.utils.HtmlUtils Class Reference
+ Collaboration diagram for net.sf.gridarta.utils.HtmlUtils:

Static Public Member Functions

static String encode (@NotNull final String str)
 
static String encodeOptional (@Nullable final String str)
 

Private Member Functions

 HtmlUtils ()
 

Detailed Description

Utility class for HTML related functions.

Definition at line 28 of file HtmlUtils.java.

Constructor & Destructor Documentation

◆ HtmlUtils()

net.sf.gridarta.utils.HtmlUtils.HtmlUtils ( )
private

Private constructor to prevent instantiation.

Definition at line 33 of file HtmlUtils.java.

Member Function Documentation

◆ encode()

static String net.sf.gridarta.utils.HtmlUtils.encode ( @NotNull final String  str)
static

Encodes a string so that the result can be embedded into HTML.

Parameters
strthe string to encode
Returns
the encoded string

Definition at line 53 of file HtmlUtils.java.

Referenced by net.sf.gridarta.gui.map.renderer.ToolTipAppender< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.appendGameObject(), net.sf.gridarta.utils.HtmlUtils.encodeOptional(), and net.sf.gridarta.model.validation.errors.ValidationError< G, A, R >.getMessage().

+ Here is the caller graph for this function:

◆ encodeOptional()

static String net.sf.gridarta.utils.HtmlUtils.encodeOptional ( @Nullable final String  str)
static

Encodes an optional string so that the result can be embedded into HTML.

Parameters
strthe optional string to encode
Returns
the optional encoded string; returns
null
if the input parameter is
null

Definition at line 43 of file HtmlUtils.java.

References net.sf.gridarta.utils.HtmlUtils.encode().

Referenced by net.sf.gridarta.model.validation.errors.ValidationError< G, A, R >.getMessage().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: