class: Utils

public class: Utils
Author: vmakarenko (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 1516 $ $LastChangedDate: 2009-02-10 16:; Complexity: 1
Dates: Created: 16.07.2009 15:12:29; Modified: 16.07.2009 15:12:29;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {1BB62313-76AC-40ad-B1EF-22E33270703C}
Utils class.
 

Goto: Custom Properties, Methods

Appears in: utils

Custom Properties
 
Utils Methods
Operation Details
public static
checkCondition(
   boolean cond,
   String message):void
Sequential
Tags: throws=CitationStyleManagerException
Notes: Throws ExportManagerException true if cond is true
public static
checkLen(
   String val):boolean
Sequential
Notes: Returns true if val is not null && Length >0
@return first not null && Length >0
public static
checkName(
   String name):void
Sequential
Tags: throws=CitationStyleManagerException
public static
checkName(
   String name,
   String message):void
Sequential
Tags: throws=CitationStyleManagerException
public static
checkPcs(
   ProcessCitationStyles pcs):void
Sequential
Tags: throws=CitationStyleManagerException
public static
checkVal(
   String val):boolean
Sequential
Notes: Returns true if val is not null && not empty String
@return first not null && not empty String
public static
coalesce(
   String[] values):String
Sequential
Notes: Returns first not null && not empty String from String[]
@return first not null && not empty String
public static
coalesceInt(
   int[] values):int
Sequential
Notes: Returns first not 0 int from int[]
@return first not 0 value
public static
findInList(
   String[] a,
   String name):boolean
Sequential
Notes: Find <code>name</code> in <code>a</code> String[]
@return <code>true</code> if <code>name</code> has been found
public static
join(
   String[] arr,
   String delimiter):String
Sequential
Notes: Joins the elements of the provided array into a single String containing the provided list of elements. Separator will be put between the not null/empty elements
@return joined string
public static
overParams(
   String p1,
   String p2):String
Sequential
Notes: Paramaters' overwriting
@return An overwritten parameter
public static
overParams(
   int p1,
   int p2):int
Sequential
Notes: Paramaters' overwriting
@return An overwritten parameter
public static
replaceAllTotal(
   String what,
   String expr,
   String replacement):String
Sequential
public static
xmlEncode(
   String str,
   int count):String
Sequential
Notes: @return
public static
xmlEncode(
   String str):String
Sequential
Notes: @return