JaCoP.core
Class XMLSaveSupport
java.lang.Object
JaCoP.core.XMLSaveSupport
public class XMLSaveSupport
- extends java.lang.Object
- Author:
- Radoslaw Szymanek
1. Make sure all saved attributes are public.
2. Make sure order between xmlAttributes and one constructor is the same.
3. Make sure that id, or numberId is set properly after running constructor.
4. Make sure that all constraints/variables have attribute numberId;
5. Make sure that all objects have attribute id.
6. Remove old code for getting XML functionality.
7. Make sure that the ids are proper (unique, and do not contain unusual characters like space).
I. More complex objects to XML need to use special functions to save and load XML.
Ia. void toXML(TransformerHandler) to save to XML the object which implements the function. It compleemnts xmlAttributes.
Ib. DefaultHandler getXMLReader(), returns an object capable of returning the proper object from reading XML.
9. For variables it is checked if Store argument must be added to constructor. Only as the first one.
10. Save constraints, variables, search definition.
|
Field Summary |
static java.lang.Class |
classVariable
|
static java.util.HashMap<java.lang.Class,java.util.HashMap<java.lang.String,?>> |
repository
|
static java.util.HashMap<java.lang.Class,java.util.HashSet<java.lang.Class>> |
repositoryClear
|
static java.util.HashMap<java.lang.Class,java.util.HashSet<java.lang.Object>> |
repositorySet
|
|
Method Summary |
static void |
save(Store store,
java.lang.String filename)
|
static void |
save(javax.xml.transform.sax.TransformerHandler handler,
java.lang.Object a,
org.xml.sax.helpers.AttributesImpl nestedAtts)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classVariable
public static java.lang.Class classVariable
repository
public static java.util.HashMap<java.lang.Class,java.util.HashMap<java.lang.String,?>> repository
repositorySet
public static java.util.HashMap<java.lang.Class,java.util.HashSet<java.lang.Object>> repositorySet
repositoryClear
public static java.util.HashMap<java.lang.Class,java.util.HashSet<java.lang.Class>> repositoryClear
XMLSaveSupport
public XMLSaveSupport()
save
public static void save(Store store,
java.lang.String filename)
save
public static void save(javax.xml.transform.sax.TransformerHandler handler,
java.lang.Object a,
org.xml.sax.helpers.AttributesImpl nestedAtts)