|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.mexico.MexicoHelper
public class MexicoHelper
Mexico helper class.
| Constructor Summary | |
|---|---|
MexicoHelper()
|
|
| Method Summary | |
|---|---|
protected static StringBuffer |
appendString(StringBuffer buffer,
Object o)
Append object type and value in stringbuffer. |
static String |
formatXML(String unformattedXml)
Format xml string. |
static String |
getDesignPlanAsXML(DesignPlan designPlan)
Get xml representation of a design plan. |
static DesignPlan |
getDesignPlanFromXML(File xmlFile,
org.nuiton.topia.TopiaContext topiaContext)
Parse xmlFile with sax, and return a DesignPlan. |
static String |
getMatrixAsXML(org.nuiton.math.matrix.MatrixND matrix)
Transform matrix into XML mexico format. |
static org.nuiton.math.matrix.MatrixND |
getMatrixFromXml(org.dom4j.Element mxElement,
org.nuiton.topia.TopiaContext context)
Parse a dom element (mx) as a MatrixND. |
static Object |
getObjectFromString(String content,
org.nuiton.topia.TopiaContext context)
Parse string content (human readable) to get isis fish instance for this object. |
protected static String |
getQualifiedName(Object o)
Return object fully qualified name excepted for TopiaEntity. |
static String |
getRulesAsXml(List<Rule> rules)
Transform rules list as xml. |
static List<Rule> |
getRulesFromXml(org.dom4j.Element rulesElement,
org.nuiton.topia.TopiaContext topiaContext)
Parse xml as rules list. |
static String |
getStringFromObject(Object object)
Get string representation (human readable) for an object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MexicoHelper()
| Method Detail |
|---|
public static String getDesignPlanAsXML(DesignPlan designPlan)
designPlan - design plan
public static DesignPlan getDesignPlanFromXML(File xmlFile,
org.nuiton.topia.TopiaContext topiaContext)
throws IOException
DesignPlan.
xmlFile - file path to parsetopiaContext - database context
IOExceptionpublic static String formatXML(String unformattedXml)
unformattedXml - non formatted xml string (must be valid xml)
IsisFishRuntimeException
IllegalArgumentException - if input xml is not validpublic static String getMatrixAsXML(org.nuiton.math.matrix.MatrixND matrix)
2.0 3.1415 2.0 3.1415 2.0 3.1415
matrix - matrix
null if matrix is null
protected static StringBuffer appendString(StringBuffer buffer,
Object o)
fqn(value)
buffer - buffer to append too - value to append
public static org.nuiton.math.matrix.MatrixND getMatrixFromXml(org.dom4j.Element mxElement,
org.nuiton.topia.TopiaContext context)
MatrixND.
Format is :
2.0 3.1415 2.0 3.1415 2.0 3.1415
mxElement - dom elementcontext - topia context
protected static String getQualifiedName(Object o)
TopiaEntity.
o - object to get fqn
public static String getRulesAsXml(List<Rule> rules)
param1 topiaId1 param2 topiaId2
rules - rules list
public static List<Rule> getRulesFromXml(org.dom4j.Element rulesElement,
org.nuiton.topia.TopiaContext topiaContext)
param1 topiaId1 param2 topiaId2
rulesElement - rules dom elementtopiaContext - topia context (for rules parameters)
public static Object getObjectFromString(String content,
org.nuiton.topia.TopiaContext context)
content - content to parsecontext - context to database
public static String getStringFromObject(Object object)
object -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||