Examples of NameValuePair


Examples of org.aspectj.apache.bcel.classfile.annotation.NameValuePair

  private static boolean handleAfterReturningAnnotation(RuntimeAnnos runtimeAnnotations, AjAttributeMethodStruct struct,
      ResolvedPointcutDefinition preResolvedPointcut, BcelMethod owningMethod)
      throws ReturningFormalNotDeclaredInAdviceSignatureException {
    AnnotationGen after = getAnnotation(runtimeAnnotations, AjcMemberMaker.AFTERRETURNING_ANNOTATION);
    if (after != null) {
      NameValuePair annValue = getAnnotationElement(after, VALUE);
      NameValuePair annPointcut = getAnnotationElement(after, POINTCUT);
      NameValuePair annReturned = getAnnotationElement(after, RETURNING);

      // extract the pointcut and returned type/binding - do some checks
      String pointcut = null;
      String returned = null;
      if ((annValue != null && annPointcut != null) || (annValue == null && annPointcut == null)) {
        reportError("@AfterReturning: either 'value' or 'poincut' must be provided, not both", struct);
        return false;
      }
      if (annValue != null) {
        pointcut = annValue.getValue().stringifyValue();
      } else {
        pointcut = annPointcut.getValue().stringifyValue();
      }
      if (isNullOrEmpty(pointcut)) {
        reportError("@AfterReturning: either 'value' or 'poincut' must be provided, not both", struct);
        return false;
      }
      if (annReturned != null) {
        returned = annReturned.getValue().stringifyValue();
        if (isNullOrEmpty(returned)) {
          returned = null;
        } else {
          // check that thrownFormal exists as the last parameter in
          // the advice
View Full Code Here

Examples of org.aspectj.apache.bcel.classfile.annotation.NameValuePair

  private static boolean handleAfterThrowingAnnotation(RuntimeAnnos runtimeAnnotations, AjAttributeMethodStruct struct,
      ResolvedPointcutDefinition preResolvedPointcut, BcelMethod owningMethod)
      throws ThrownFormalNotDeclaredInAdviceSignatureException {
    AnnotationGen after = getAnnotation(runtimeAnnotations, AjcMemberMaker.AFTERTHROWING_ANNOTATION);
    if (after != null) {
      NameValuePair annValue = getAnnotationElement(after, VALUE);
      NameValuePair annPointcut = getAnnotationElement(after, POINTCUT);
      NameValuePair annThrown = getAnnotationElement(after, THROWING);

      // extract the pointcut and throwned type/binding - do some checks
      String pointcut = null;
      String thrownFormal = null;
      if ((annValue != null && annPointcut != null) || (annValue == null && annPointcut == null)) {
        reportError("@AfterThrowing: either 'value' or 'poincut' must be provided, not both", struct);
        return false;
      }
      if (annValue != null) {
        pointcut = annValue.getValue().stringifyValue();
      } else {
        pointcut = annPointcut.getValue().stringifyValue();
      }
      if (isNullOrEmpty(pointcut)) {
        reportError("@AfterThrowing: either 'value' or 'poincut' must be provided, not both", struct);
        return false;
      }
      if (annThrown != null) {
        thrownFormal = annThrown.getValue().stringifyValue();
        if (isNullOrEmpty(thrownFormal)) {
          thrownFormal = null;
        } else {
          // check that thrownFormal exists as the last parameter in
          // the advice
View Full Code Here

Examples of org.jboss.metamodel.descriptor.NameValuePair

   {
      Object child = null;

      if (localName.equals("activation-config-property"))
      {
         child = new NameValuePair();
      }

      return child;
   }
View Full Code Here

Examples of org.omg.DynamicAny.NameValuePair

            for( int i = 0 ; i < limit; i++ )
            {
                org.omg.CORBA.TypeCode _tc =
                    TypeCode.originalType( typeCode.member_type(i) );
                members[i] =
                    new NameValuePair(
                            typeCode.member_name(i),
                            dynFactory.create_dyn_any_from_type_code( _tc ).to_any());

            }
        }
View Full Code Here

Examples of org.rhq.enterprise.agent.EnvironmentScriptFileUpdate.NameValuePair

                    log.error("Missing an env var name: " + configuration.toString(true));
                    throw new IllegalArgumentException("Missing the name of an environment variable");
                }

                if (value != null && value.getStringValue() != null) {
                    newSettings.add(new NameValuePair(name.getStringValue(), value.getStringValue()));
                }
            }

            // update the env script file so it includes the new settings.
            // note that we require the request to contain ALL settings, not a subset; any settings
View Full Code Here

Examples of org.ribax.utils.types.NameValuePair

     
        if (params.size() == 0)
            return null;
        ArrayList<NameValuePair> list = new ArrayList<NameValuePair>();
        NameValuePair nvp;
       
        Iterator<Parameter> it = params.iterator();
        while (it.hasNext()) {
            Parameter p = it.next();
           
View Full Code Here

Examples of org.wso2.carbon.rulecep.commons.NameValuePair

    public List execute(List<Object> facts) {

        final List<Command> cmds = new ArrayList<Command>();
        for (Object fact : facts) {
            if (fact instanceof NameValuePair) {
                NameValuePair pair = (NameValuePair) fact;
                Object value = pair.getValue();
                String name = pair.getName();
                if (value != null) {
                    cmds.add(CommandFactory.newInsert(value, name));
                }
            } else {
                cmds.add(CommandFactory.newInsert(fact));
View Full Code Here

Examples of org.xlightweb.NameValuePair

          ConnectionUtils.registerMBean(server);
         
          HttpClient httpClient = new HttpClient();

          IHttpResponse response = httpClient.call(new PostRequest("http://localhost:" + server.getLocalPort() + "/s/", new NameValuePair("param", "value"), new NameValuePair("param2", "value2")));
          Assert.assertEquals(200, response.getStatus());

          QAUtil.sleep(1000);

         
View Full Code Here

Examples of our.apache.commons.httpclient.NameValuePair

                    }
                    // we are interested in the CC/PP Exchange namespace only
                    if (element.getValue() == null &&
                        elementName.equalsIgnoreCase(
                            "http://www.w3.org/1999/06/24-CCPPexchange")) {
                        final NameValuePair parameter =
                            element.getParameterByName("ns");
                        String paramValue = parameter.getValue();
                        if (paramValue != null) {
                            String namespace = null;
                            paramValue = paramValue.trim();
                            // check if it is a 2 digit number
                            if (paramValue.length() == 2) {
View Full Code Here

Examples of xcat.schema.NameValuePair

      // if we get here, this is a valid installation for this
      // creationProto/execHost pair
      NameValuePair[] nameValuePairList =
  executionEnv.getNameValuePair();
      for (int l = 0; l < nameValuePairList.length; l++) {
  NameValuePair nameValuePair = nameValuePairList[l];
  String nameOfVariable = nameValuePair.getName();
  String value = nameValuePair.getValue();
  componentEnv.putString(nameOfVariable, value);
      }
     
      // found an installation, break here
      found = true;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.