private static void writeUniverseConfig(ElementNode universesEl, String name, String factory, String location) { final ElementNode universeEl = addElement(universesEl, Element.UNIVERSE.getLocalName(), universesEl.getNamespace()); if(name != null) { addAttribute(universeEl, Attribute.NAME, name); } addAttribute(universeEl, Attribute.FACTORY, factory); if(location != null) { addAttribute(universeEl, Attribute.LOCATION, location); } }
addAttribute(defConfigsE, Attribute.INHERIT, FALSE); defConfigsE = addElement(parent, Element.DEFAULT_CONFIGS.getLocalName(), ns); addAttribute(defConfigsE, Attribute.INHERIT_UNNAMED_MODELS, FALSE); addAttribute(exclude, Attribute.MODEL, excluded.getKey()); if(!excluded.getValue()) { addAttribute(exclude, Attribute.NAMED_MODELS_ONLY, FALSE); for(String modelName : array) { final ElementNode included = addElement(defConfigsE, Element.INCLUDE.getLocalName(), ns); addAttribute(included, Attribute.MODEL, modelName); final ElementNode excluded = addElement(defConfigsE, Element.EXCLUDE.getLocalName(), ns); if(configId.getModel() != null) { addAttribute(excluded, Attribute.MODEL, configId.getModel()); addAttribute(excluded, Attribute.NAME, configId.getName()); final ElementNode includeElement = addElement(defConfigsE, Element.INCLUDE.getLocalName(), ns); if(config.getModel() != null) { addAttribute(includeElement, Attribute.MODEL, config.getModel()); addAttribute(includeElement, Attribute.NAME, config.getName());
static void writeFeaturePackConfig(ElementNode fp, FeaturePackLocation location, FeaturePackConfig featurePack, String origin) { addAttribute(fp, Attribute.LOCATION, location.toString()); if(origin != null) { addElement(fp, Element.ORIGIN.getLocalName(), ns).addChild(new TextNode(origin)); for(FPID patchId : featurePack.getPatches()) { final ElementNode patch = addElement(patches, Element.PATCH.getLocalName(), ns); addAttribute(patch, Attribute.ID, patchId.toString()); if (!featurePack.isInheritPackages()) { packages = addElement(fp, Element.PACKAGES.getLocalName(), ns); addAttribute(packages, Attribute.INHERIT, FALSE); addAttribute(exclude, Attribute.NAME, excluded); addAttribute(include, Attribute.NAME, included.getName());
for(String name : names) { final ElementNode optionE = addElement(optionsE, Element.OPTION); addAttribute(optionE, Attribute.NAME, name); final String value = pluginOptions.get(name); if(value != null) { addAttribute(optionE, Attribute.VALUE, value);