public class FwkXmlInterpreter
extends java.lang.Object
Constructor and Description |
---|
FwkXmlInterpreter() |
Modifier and Type | Method and Description |
---|---|
static java.awt.Color |
decode_java_awt_Color(java.lang.String s)
This method returns a color created from the incoming xml string presentation.
|
static java.awt.Dimension |
decode_java_awt_Dimension(java.lang.String s)
This method returns a dimension created from the incoming xml string presentation.
|
static java.awt.Font |
decode_java_awt_Font(java.lang.String s)
This method returns a color created from the incoming xml string presentation.
|
static java.lang.Boolean |
decode_java_lang_Boolean(java.lang.String s)
This method returns a boolean created from the incoming xml string presentation.
|
static java.lang.String |
decode_java_lang_String(java.lang.String s)
This method returns a string created from the incoming xml string presentation.
|
static java.net.URL |
decode_java_net_URL(java.lang.String s)
This method returns a url created from the incoming xml string presentation.
|
static java.lang.String |
encode_java_awt_Color(java.awt.Color c)
This method returns a xml string representation of a color.
|
static java.lang.String |
encode_java_awt_Dimension(java.awt.Dimension dim)
This method returns a xml string representation of a dimension.
|
static java.lang.String |
encode_java_awt_Font(java.awt.Font f)
This method returns a xml string representation of a color.
|
static java.lang.String |
encode_java_lang_Boolean(java.lang.Boolean b)
This method returns a xml string representation of a Boolean.
|
static java.lang.String |
encode_java_lang_String(java.lang.String s)
This method returns a xml string representation of a string.
|
static java.lang.String |
encode_java_net_URL(java.net.URL url)
This method returns a xml string representation of an url.
|
static float[] |
getDashArray() |
static java.lang.StringBuffer |
getDTD(java.lang.String[] classes,
java.lang.Class interpreterClass)
Create a DTD for the P2D package.
|
static java.lang.StringBuffer |
getDTD(java.lang.String[] classes,
java.lang.Class[] interpreterClass)
Create a DTD for the P2D package.
|
static java.util.Map |
getInterpreterMethods(java.lang.Class interpreterClass,
java.util.Map map)
Get the interpreter methods.
|
static FwkSortedArray |
getXMLProperties(java.lang.Class clazz,
FwkSortedArray arr,
java.lang.Class intClazz)
Get the properties that are writeable into a XML file.
|
static FwkSortedArray |
getXMLProperties(java.lang.Class clazz,
FwkSortedArray arr,
java.lang.Class[] intClazz)
Get the properties that are writeable into a XML file.
|
static FwkSortedArray |
getXMLProperties(java.lang.Class clazz,
FwkSortedArray arr,
java.util.Map interpreterProps)
Get the properties that are writeable into a XML file.
|
static void |
main(java.lang.String[] args) |
static void |
writeDTD(java.lang.String filename,
java.lang.String[] classes,
java.lang.Class clazz)
Write a DTD file for the P2D package.
|
public static java.lang.String encode_java_lang_Boolean(java.lang.Boolean b)
b
- The boolean.public static java.lang.Boolean decode_java_lang_Boolean(java.lang.String s)
s
- the xml presentation string.public static java.lang.String encode_java_lang_String(java.lang.String s)
s
- The string.public static java.lang.String decode_java_lang_String(java.lang.String s)
s
- the xml presentation string.public static java.lang.String encode_java_awt_Color(java.awt.Color c)
c
- The color.public static java.awt.Color decode_java_awt_Color(java.lang.String s)
s
- the xml presentation string.public static java.lang.String encode_java_net_URL(java.net.URL url)
url
- The url.public static java.net.URL decode_java_net_URL(java.lang.String s)
s
- the xml presentation string.public static java.lang.String encode_java_awt_Dimension(java.awt.Dimension dim)
dim
- the dimension.public static java.awt.Dimension decode_java_awt_Dimension(java.lang.String s)
s
- the xml presentation string.public static java.lang.String encode_java_awt_Font(java.awt.Font f)
c
- The color.public static java.awt.Font decode_java_awt_Font(java.lang.String s)
s
- the xml presentation string.public static java.util.Map getInterpreterMethods(java.lang.Class interpreterClass, java.util.Map map)
interpreterClass
- The interpreter class from that the methods should be read.map
- The map that contains the methods. If null the map will be created.The
- map that contains the methods.public static FwkSortedArray getXMLProperties(java.lang.Class clazz, FwkSortedArray arr, java.lang.Class intClazz)
clazz
- The class to be analized.arr
- Array into the properties will be written.
If null the array will be created.intClass
- The class that has interpreter functions for objects.public static FwkSortedArray getXMLProperties(java.lang.Class clazz, FwkSortedArray arr, java.lang.Class[] intClazz)
clazz
- The class to be analized.arr
- Array into the properties will be written.
If null the array will be created.intClass
- The class that has interpreter functions for objects.public static FwkSortedArray getXMLProperties(java.lang.Class clazz, FwkSortedArray arr, java.util.Map interpreterProps)
clazz
- The class to be analized.arr
- Array into the properties will be written.
If null the array will be created.interpreterProp
- A Map containing the properties that are readable/writeable by an interpreter.
The key is the property and the value is the interpreter class.public static java.lang.StringBuffer getDTD(java.lang.String[] classes, java.lang.Class interpreterClass)
classes
- The array containing the class names to be written.interpreterClass
- The class that has interpreter functions for objects.public static java.lang.StringBuffer getDTD(java.lang.String[] classes, java.lang.Class[] interpreterClass)
classes
- The array containing the class names to be written.interpreterClass
- The class that has interpreter functions for objects.public static void writeDTD(java.lang.String filename, java.lang.String[] classes, java.lang.Class clazz) throws java.io.IOException
filename
- the name of the file to be written.clazz
- The class that has interpreter functions for objects.java.io.IOException.
java.io.IOException
public static float[] getDashArray()
public static void main(java.lang.String[] args)