Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
MatrixToolkit Class Reference

Static Public Member Functions

static String rawUrlEncode (String url, boolean encodeSpaces)
 
static String rawUrlDecode (String url)
 
static String implode (String delimiter, List elements)
 
static void addAssetToXML (StringBuffer xml, Asset asset, int start, int limit)
 
static void addAssetToXML (StringBuffer xml, String assetid, String linkid, int start, int limit)
 

Detailed Description

MatrixToolkit also defines methods that provide functionality similar to their PHP counterparts so that the Java Asset Map and the Matrix PHP source can Interoperate

Author
Marc McIntyre mmcin.nosp@m.tyre.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Definition at line 32 of file MatrixToolkit.java.

Member Function Documentation

static void addAssetToXML ( StringBuffer  xml,
String  assetid,
String  linkid,
int  start,
int  limit 
)
inlinestatic

Adds an XML node to the specified string buffer. The xml can be used for requests for assets.

Parameters
xmlthe string buffer that contains the xml
assetthe asset to add.

Definition at line 107 of file MatrixToolkit.java.

static String implode ( String  delimiter,
List  elements 
)
inlinestatic

Implodes a Vector with a specified delimiter, creating a string. Currently, this method can handle Vectors occupied with Integer and/or String objects.

Parameters
delimiterthe delimiter that each element in the vector will be sererated by
elementsthe elements to implode
Returns
String the imploded elements string

Definition at line 83 of file MatrixToolkit.java.

static String rawUrlDecode ( String  url)
inlinestatic

Decodes a string from the UTF-8 encoding standard to a normal string

Parameters
urlthe string to decode
Returns
the decoded String

Definition at line 64 of file MatrixToolkit.java.

static String rawUrlEncode ( String  url,
boolean  encodeSpaces 
)
inlinestatic

Encodes a string using the UTF-8 encoding format. Useful for encoding strings for urls

Parameters
urlthe string to encode
encodeSpacesif TRUE spaces will be encoded to plus signs(+) which will produce a string that is a legal url
Returns
the URL encoded String

Definition at line 46 of file MatrixToolkit.java.


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