Examples of NullValue


Examples of net.sf.jsqlparser.expression.NullValue

        boolean isInverse = false;
        String tmp = "";
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case K_NULL:
      jj_consume_token(K_NULL);
                   retval = new NullValue();
      break;
    case K_CASE:
      retval = CaseWhenExpression();
      break;
    case 83:
View Full Code Here

Examples of org.apache.flink.types.NullValue

  }
 
  @Test
  public void testPactNull() {
   
    final NullValue pn1 = new NullValue();
    final NullValue pn2 = new NullValue();
   
    Assert.assertEquals("PactNull not equal to other PactNulls.", pn1, pn2);
    Assert.assertEquals("PactNull not equal to other PactNulls.", pn2, pn1);
   
    Assert.assertFalse("PactNull equal to other null.", pn1.equals(null));
   
    // test serialization
    final NullValue pn = new NullValue();
    final int numWrites = 13;
   
    try {
      // write it multiple times
      for (int i = 0; i < numWrites; i++) {
        pn.write(new OutputViewDataOutputStreamWrapper(mOut));
      }
     
      // read it multiple times
      for (int i = 0; i < numWrites; i++) {
        pn.read(new InputViewDataInputStreamWrapper(mIn));
      }
     
      Assert.assertEquals("Reading PactNull does not consume the same data as was written.", mIn.available(), 0);
    }
    catch (IOException ioex) {
View Full Code Here

Examples of org.apache.flink.types.NullValue

  }
 
  @Test
  public void testPactNull() {
   
    final NullValue pn1 = new NullValue();
    final NullValue pn2 = new NullValue();
   
    assertNormalizableKey(pn1, pn2, 0);
  }
View Full Code Here

Examples of org.apache.slide.projector.value.NullValue

                    }
                    ParameterDescriptor parameterDescriptor;
                    if ( required ) {
                        parameterDescriptor = new ParameterDescriptor(variableName, new ParameterMessage("templateVariable", new String[] { variableName }), resourceValueDescriptor);
                    } else {
                        parameterDescriptor = new ParameterDescriptor(variableName, new ParameterMessage("templateVariable", new String[] { variableName }), resourceValueDescriptor, new NullValue());
                    }
                    if ( !parameterDescriptions.contains(parameterDescriptor) ) {
                      parameterDescriptions.add(parameterDescriptor);
                    }
                    templateParameterDescriptors.put(variableName, parameterDescriptor);
View Full Code Here

Examples of org.apache.slide.projector.value.NullValue

            this.required = required;
        }

        public void render(StringBuffer buffer, Map parameter, int index) throws ProcessException {
            Object variableValue = parameter.get(name);
            if ( variableValue == null ) variableValue = new NullValue();
            if ( variableValue instanceof ArrayValue ) {
                Value []array = (((ArrayValue)variableValue).getArray());
                if ( index > array.length-1 ) {
                    variableValue = array[index % array.length];
                } else {
View Full Code Here

Examples of org.apache.slide.projector.value.NullValue

        parameterDescriptors[parentParameterDescriptors.length - 1] =
                new ParameterDescriptor(ACTION, new ParameterMessage("control/action"), new URIValueDescriptor());
        parameterDescriptors[parentParameterDescriptors.length ] =
                new ParameterDescriptor(PARAMETER, new ParameterMessage("control/parameter"), new URIValueDescriptor());
        parameterDescriptors[parentParameterDescriptors.length + 1] =
                new ParameterDescriptor(VALUE, new ParameterMessage("control/value"), new AnyValueDescriptor(), new NullValue());
        parameterDescriptors[parentParameterDescriptors.length + 2] =
                new ParameterDescriptor(STATE, new ParameterMessage("control/state"), new StringValueDescriptor(new String[] {OPTIONAL_VALID_CONTROL, OPTIONAL_INVALID_CONTROL, OPTIONAL_CONTROL, REQUIRED_CONTROL, REQUIRED_VALID_CONTROL, REQUIRED_INVALID_CONTROL}), new StringValue(OPTIONAL));

        try {
            optionalFragment = getRequiredFragment(OPTIONAL_CONTROL + getName());
View Full Code Here

Examples of org.exoplatform.ws.frameworks.json.value.impl.NullValue

   {
      Types t = JsonUtils.getType(object);
      switch (t)
      {
         case NULL :
            return new NullValue();
         case BOOLEAN :
            return new BooleanValue((Boolean)object);
         case BYTE :
            return new LongValue((Byte)object);
         case SHORT :
View Full Code Here

Examples of org.exoplatform.ws.frameworks.json.value.impl.NullValue

      {
         return new BooleanValue(Boolean.parseBoolean(new String(characters)));
      }
      else if ("null".equalsIgnoreCase(new String(characters)))
      {
         return new NullValue();
      }
      else
      {
         char c = characters[0];
         if ((c >= '0' && c <= '9') || c == '.' || c == '-' || c == '+')
View Full Code Here

Examples of org.exoplatform.ws.frameworks.json.value.impl.NullValue

    * {@inheritDoc}
    */
   public JsonValue createJsonArray(Collection<?> collection) throws JsonException
   {
      if (collection == null)
         return new NullValue();

      JsonValue jsonArray = new ArrayValue();
      for (Object o : collection)
      {
         // If :
View Full Code Here

Examples of org.exoplatform.ws.frameworks.json.value.impl.NullValue

    * {@inheritDoc}
    */
   public JsonValue createJsonArray(Object array) throws JsonException
   {
      if (array == null)
         return new NullValue();

      Types t = JsonUtils.getType(array);
      JsonValue jsonArray = new ArrayValue();
      int length = Array.getLength(array);
      if (t == Types.ARRAY_BOOLEAN)
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.