Package fr.imag.adele.apam.declarations

Examples of fr.imag.adele.apam.declarations.InjectedPropertyPolicy


   * Parse the strategy for field synchronization (NOT compatible with
   * deprecated internal=true attribute)
   */
  private InjectedPropertyPolicy parseInjectedPropertyPolicy(String componentName, Element element) {
    String value = parseString(componentName, element, ATT_INJECTED, false);
    InjectedPropertyPolicy injected;
    injected = InjectedPropertyPolicy.getPolicy(value);

    if (value == null) {
      return InjectedPropertyPolicy.BOTH;
    } else {
View Full Code Here


      String type = parseString(component.getName(), definition, ATT_TYPE);
      String defaultValue = parseString(component.getName(), definition, ATT_DEFAULT, false);

      String field = null;
      String callback = null;
      InjectedPropertyPolicy injected = null;

      if (component instanceof AtomicImplementationDeclaration) {
        field = parseString(component.getName(), definition, ATT_FIELD, false);
        callback = parseString(component.getName(), definition, ATT_METHOD, false);
        injected = parseInjectedPropertyPolicy(component.getName(), definition);
View Full Code Here

      String name = subElement.getAttribute(ComponentParser.ATT_NAME,
          ComponentParser.APAM);
      definitions.add(name);
      if (name != null & mapAddedDefinitions.containsKey(name)) {

        InjectedPropertyPolicy injectPolicy = InjectedPropertyPolicy
            .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);
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.declarations.InjectedPropertyPolicy

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.