maven2-plugins/myfaces-faces-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/faces/parse/rules/BeanPropertySetterRule.java [45:81]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public void end(
    String namespace,
    String name) throws Exception
  {
    Object top = digester.peek();

    PropertyDescriptor descriptor =
          PropertyUtils.getPropertyDescriptor(top, propertyName);

    if (descriptor == null)
    {
      throw new NoSuchMethodException("Missing bean property \"" +
                                      propertyName + "\"");
    }

    Class propertyType = descriptor.getPropertyType();

    if (QName.class.equals(propertyType))
    {
      int colon = bodyText.indexOf(':');
      if (colon != -1)
      {
        String namespaceURI = digester.findNamespaceURI(bodyText.substring(0, colon));
        bodyText = "{" + namespaceURI + "}" + bodyText.substring(colon + 1);
      }
      else if (bodyText.indexOf('{') == -1)
      {
        String namespaceURI = digester.findNamespaceURI("");
        bodyText = "{" + namespaceURI + "}" + bodyText.substring(colon + 1);
      }
      BeanUtils.setProperty(top, propertyName, bodyText);
    }
    else
    {
      super.end(namespace, name);
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



maven2-plugins/myfaces-builder-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/builder/trinidad/parse/rules/BeanPropertySetterRule.java [45:81]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public void end(
    String namespace,
    String name) throws Exception
  {
    Object top = digester.peek();

    PropertyDescriptor descriptor =
          PropertyUtils.getPropertyDescriptor(top, propertyName);

    if (descriptor == null)
    {
      throw new NoSuchMethodException("Missing bean property \"" +
                                      propertyName + "\"");
    }

    Class propertyType = descriptor.getPropertyType();

    if (QName.class.equals(propertyType))
    {
      int colon = bodyText.indexOf(':');
      if (colon != -1)
      {
        String namespaceURI = digester.findNamespaceURI(bodyText.substring(0, colon));
        bodyText = "{" + namespaceURI + "}" + bodyText.substring(colon + 1);
      }
      else if (bodyText.indexOf('{') == -1)
      {
        String namespaceURI = digester.findNamespaceURI("");
        bodyText = "{" + namespaceURI + "}" + bodyText.substring(colon + 1);
      }
      BeanUtils.setProperty(top, propertyName, bodyText);
    }
    else
    {
      super.end(namespace, name);
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



