Package fr.imag.adele.apam.maven.plugin

Examples of fr.imag.adele.apam.maven.plugin.InvalidApamMetadataException


            .valueOf(subElement
                .getAttribute(ComponentParser.ATT_INJECTED));
        if (injectPolicy != null
            && !injectPolicy
                .equals(InjectedPropertyPolicy.EXTERNAL))
          throw new InvalidApamMetadataException(
              "Property definition error (wrong injection policy) for property "
                  + name);

        String type = subElement
            .getAttribute(ComponentParser.ATT_TYPE);
        if (type != null
            && !type.equals(mapAddedDefinitions.get(name).getType()))
          throw new InvalidApamMetadataException(
              "Property definition error (type mismatch) for property "
                  + name);

        String defaultVal = subElement.getAttribute(ComponentParser.ATT_DEFAULT);
        if (defaultVal != null  && mapAddedDefinitions.get(name).hasDefaultValue() && !defaultVal.equals(mapAddedDefinitions.get(name).getDefaultValue()))
          throw new InvalidApamMetadataException(
              "Property definition error (default value mismatch) for property "
                  + name);

        String field   = subElement.getAttribute(ComponentParser.ATT_FIELD);
        String callback = subElement.getAttribute(ComponentParser.ATT_METHOD);
View Full Code Here


    if (tabElt != null) {
      for (Element subElement : tabElt) {
        String name = subElement.getAttribute(
            ComponentParser.ATT_NAME, ComponentParser.APAM);
        if (name != null & addedProperties.containsKey(name)) {
          throw new InvalidApamMetadataException(
              "Property already defined : " + name);
        }
      }
    }
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.maven.plugin.InvalidApamMetadataException

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.