示例#1
0
 /**
  * Saves the SchemaSystem to an XmlObject.
  *
  * @param xml A blank XmlObject to save to.
  */
 public void save(SchemaSetConfig xml) {
   for (Schema item : schemas.values()) item.save(xml.addNewSchema());
 }
示例#2
0
 /**
  * Constructs a SchemaSystem object using previously saved data.
  *
  * @param xml The XmlObject to which data has previously been saved.
  */
 public SchemaSystem(SchemaSetConfig xml) {
   schemas = new LinkedHashMap<String, Schema>();
   for (SchemaConfig item : xml.getSchemaList())
     schemas.put(item.getNamespace(), new Schema(item, this));
 }