|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.weblab.core.extended.util.PoKUtil
public class PoKUtil
Uses to manipulate PieceOfKnowledge data field with a String.
| Method Summary | |
|---|---|
static java.lang.String |
getPoKData(PieceOfKnowledge pok)
Returns a String containing the RDF statements of the PieceOfKnowledge. |
static void |
setPoKData(PieceOfKnowledge pok,
java.lang.String pokStr)
Same as setPoKData(pok, pokStr, true); |
static void |
setPoKData(PieceOfKnowledge pok,
java.lang.String pokStr,
boolean strict)
Set the PieceOfKnowledge data using a String, the parameter have to be a valid XML String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String getPoKData(PieceOfKnowledge pok)
String containing the RDF statements of the PieceOfKnowledge.
pok - PieceOfKnowledge you want to get the String content
String content of the PieceOfKnowledge
public static void setPoKData(PieceOfKnowledge pok,
java.lang.String pokStr,
boolean strict)
throws WebLabCheckedException
PieceOfKnowledge data using a String, the parameter have to be a valid XML String. If the parameter don't
start with '
pok - the PieceOfKnowledge you want to modifypokStr - contains the RDF/XML Stringstrict - whether or not to be string and block some bad RDF/XML data
WebLabCheckedException - if the String parameter is not XML valid; and also, if strict and the String parameter is not RDF/XML valid
public static void setPoKData(PieceOfKnowledge pok,
java.lang.String pokStr)
throws WebLabCheckedException
setPoKData(pok, pokStr, true);
pok - the PieceOfKnowledge you want to modifypokStr - contains the RDF/XML String
WebLabCheckedException - if the String parameter is not RDF/XML validsetPoKData(PieceOfKnowledge, String, boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||