public class SuggestUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BriefDateFormatString
NOT YET DOCUMENTED
|
static java.lang.String |
FullDateFormatString
NOT YET DOCUMENTED
|
Constructor and Description |
---|
SuggestUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
commaDelimitedToArray(java.lang.String s)
Converts a comma-delimited string into a String array.
|
static java.lang.String |
getBriefDate()
Returns current time in yyyy-MM-dd format
|
static java.util.ArrayList |
getEnumeratedValues(org.dom4j.Document doc,
java.lang.String xpath)
Gets the enumeratedValues of the element of doc at xpath.
|
static java.lang.String |
getFullDate()
returns current time in "yyyy-MM-dd'T'HH:mm:ss'Z'" format
|
static java.lang.String |
getNameSpaceInfo(SchemaHelper schemaHelper)
Calculates the nameSpaceInfo attribute for item records.
|
static void |
setDebug(boolean db)
Sets the debug attribute
|
static boolean |
validateEmail(java.lang.String email)
Simple email validation, throwing Exception containing error if not valid.
|
public static java.lang.String FullDateFormatString
public static java.lang.String BriefDateFormatString
public static boolean validateEmail(java.lang.String email) throws java.lang.Exception
Validates eemail address against two rules:
email
- NOT YET DOCUMENTEDjava.lang.Exception
- NOT YET DOCUMENTEDpublic static java.util.ArrayList getEnumeratedValues(org.dom4j.Document doc, java.lang.String xpath)
doc
- an Document
xpath
- xpath to a specific Element
public static java.lang.String getNameSpaceInfo(SchemaHelper schemaHelper)
schemaHelper
- NOT YET DOCUMENTEDpublic static java.lang.String getFullDate()
public static java.lang.String getBriefDate()
public static java.lang.String[] commaDelimitedToArray(java.lang.String s)
s
- comma-delimted stringpublic static void setDebug(boolean db)
db
- The new debug value