Package ru.curs.celesta.score
Class CelestaDocUtils
- java.lang.Object
-
- ru.curs.celesta.score.CelestaDocUtils
-
public final class CelestaDocUtils extends Object
Utility class for Celesta documents.
-
-
Field Summary
Fields Modifier and Type Field Description static String
IMPLEMENTS
"implements" constant.static String
OPTION
"option" constant.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getCelestaDocJSON(String celestaDoc)
Extracts first occurrence of JSON object string from CelestaDoc.static List<String>
getList(String celestaDoc, String key)
Returns array forkey
as a value list.
-
-
-
Field Detail
-
OPTION
public static final String OPTION
"option" constant.- See Also:
- Constant Field Values
-
IMPLEMENTS
public static final String IMPLEMENTS
"implements" constant.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCelestaDocJSON
public static String getCelestaDocJSON(String celestaDoc)
Extracts first occurrence of JSON object string from CelestaDoc.- Parameters:
celestaDoc
- Celesta document.- Returns:
- Throws:
CelestaException
- thrown if broken or truncated JSON.
-
-