|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.core.xml.XMLProperties
Method Summary | |
static void |
clean()
Call this static method to remove all XML properties. |
static void |
load(java.lang.String file)
|
static void |
loadXML(java.lang.String file)
|
static void |
setDescriptorVariable(java.lang.String name,
java.lang.String value,
java.lang.String type)
Static method to add a property. |
static void |
setVariableValue(java.util.HashMap map,
java.lang.String type)
Static method to add a table of program set properties. |
static void |
setVariableValue(java.lang.String name,
java.lang.String value,
java.lang.String typeName)
Static method to add a new program set property. |
static java.lang.String |
transform(java.lang.String value)
Static method to transform a string with properties to decoded version. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void clean()
public static java.lang.String transform(java.lang.String value)
value
- Text with properties inside to translates.
public static void setVariableValue(java.lang.String name, java.lang.String value, java.lang.String typeName) throws org.xml.sax.SAXException
name
- The name of the property.value
- Text to swap with coding property name.
org.xml.sax.SAXException
public static void setVariableValue(java.util.HashMap map, java.lang.String type) throws org.xml.sax.SAXException
map
- HashMap with key=name:String and value=textToSwap:String.
org.xml.sax.SAXException
public static void setDescriptorVariable(java.lang.String name, java.lang.String value, java.lang.String type) throws org.xml.sax.SAXException
name
- The name of the property.value
- Text to swap with coding property name.type
- Type of property must be "constant", "overridable" or "programset".
If type is "constant", value must be set in descriptor, and it's impossible to redefine the value of the proterty.
If type is "overridable" value must be set in descriptor, and it's possible to redifine it with the API.
If type is "programset", value cannot be set in descriptor, value has to be defined with the API.
org.xml.sax.SAXException
public static void load(java.lang.String file) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static void loadXML(java.lang.String file) throws org.xml.sax.SAXException
org.xml.sax.SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |