Package de.FeatureModellingTool.Customize

Examples of de.FeatureModellingTool.Customize.CustomizationModelImplementation


    return result;
  }

  public void openCustomizationVersion(InputStream inputstream,
      FComponent featureModel) throws IOException, JDOMException {
    CustomizationModelImplementation cmi = (CustomizationModelImplementation)featureModel.getInterface(de.FeatureModellingTool.FeatureModel.Manager.CUSTOMIZATION_MODEL_INTERFACE);
   
    Namespace cmd = Namespace.getNamespace("cmd",
        "http://sei.pku.edu.cn/DomainEngineering/customizationversion");

    SAXBuilder saxBuilder = new SAXBuilder(false);
    Document doc = saxBuilder.build(inputstream);

    Element root = doc.getRootElement();

    CustomizationVersion result = cmi.newCustomizationVersion(root.getAttributeValue("parentid") , root.getAttributeValue("id") , root.getAttributeValue("name") , root.getAttributeValue("bindingtimeid"));
   
    for (Iterator itCustomization = root.getChildren(
        "customization", cmd).iterator(); itCustomization.hasNext();) {
      Element customization = (Element) itCustomization.next();
View Full Code Here


    //gh start
    public static CustomizationModel getCustomizationModel(FeatureModel featureModel) {
        if (!FeatureModelImplementation.class.isInstance(featureModel))
            return null;

        return new CustomizationModelImplementation(featureModel);
   }
View Full Code Here

TOP

Related Classes of de.FeatureModellingTool.Customize.CustomizationModelImplementation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.