Examples of valueToString()


Examples of com.lightcrafts.image.metadata.ImageMetadataDirectory.valueToString()

            if ( dir != null ) {
                //
                // First, consult the the owning directory to see if this
                // metadata value needs special-handling.
                //
                m_toStringCache = dir.valueToString( this );
                if ( m_toStringCache == null ) {
                    //
                    // The owning directory didn't create a string for it
                    // because it didn't need special-handling, so revert to
                    // the ordinary way to create its string.
View Full Code Here

Examples of javax.swing.JFormattedTextField.AbstractFormatter.valueToString()

                            df.thisFieldIsInError = false;
                            return true;
                        }
                        else if (this.allowsEmptyMasks) {
                        try {
                            String mask = formatter.valueToString(null);

                            if (mask.equals(text)) {
                                //  the mask is empty ... this is OK ... make sure that the datafield is really empty
                                df.clearValue();
                                df.thisFieldIsInError = false;
View Full Code Here

Examples of javax.swing.text.MaskFormatter.valueToString()

        // Checks to see whether the appropriate characters are being used to pad
        harness.checkPoint("padding");
        formatter.setPlaceholder("MMMMMMMMM");
        formatter.setPlaceholderCharacter('$');
        harness.check (formatter.valueToString("RE"),"RE*BMMKS");
        formatter.setPlaceholder("8");
        harness.check (formatter.valueToString("RE"),"RE*B$$KS");
        formatter.setPlaceholder("12345");
        harness.check (formatter.valueToString("RE"),"RE*B5$KS");
       
View Full Code Here

Examples of javax.swing.text.NumberFormatter.valueToString()

    {
        String timestamp;
        NumberFormatter formatter = new NumberFormatter();
        formatter.setFormat(new DecimalFormat("00"));
        timestamp = Integer.toString(cal.get(GregorianCalendar.YEAR));
        timestamp += "-" + formatter.valueToString(cal.get(GregorianCalendar.MONTH)+1);
        timestamp += "-" + formatter.valueToString(cal.get(GregorianCalendar.DAY_OF_MONTH));
        timestamp += "T" + formatter.valueToString(cal.get(GregorianCalendar.HOUR_OF_DAY));
        timestamp += "-" + formatter.valueToString(cal.get(GregorianCalendar.MINUTE));
        return timestamp;
    }
View Full Code Here

Examples of javax.swing.text.NumberFormatter.valueToString()

        String timestamp;
        NumberFormatter formatter = new NumberFormatter();
        formatter.setFormat(new DecimalFormat("00"));
        timestamp = Integer.toString(cal.get(GregorianCalendar.YEAR));
        timestamp += "-" + formatter.valueToString(cal.get(GregorianCalendar.MONTH)+1);
        timestamp += "-" + formatter.valueToString(cal.get(GregorianCalendar.DAY_OF_MONTH));
        timestamp += "T" + formatter.valueToString(cal.get(GregorianCalendar.HOUR_OF_DAY));
        timestamp += "-" + formatter.valueToString(cal.get(GregorianCalendar.MINUTE));
        return timestamp;
    }
   
View Full Code Here

Examples of javax.swing.text.NumberFormatter.valueToString()

        NumberFormatter formatter = new NumberFormatter();
        formatter.setFormat(new DecimalFormat("00"));
        timestamp = Integer.toString(cal.get(GregorianCalendar.YEAR));
        timestamp += "-" + formatter.valueToString(cal.get(GregorianCalendar.MONTH)+1);
        timestamp += "-" + formatter.valueToString(cal.get(GregorianCalendar.DAY_OF_MONTH));
        timestamp += "T" + formatter.valueToString(cal.get(GregorianCalendar.HOUR_OF_DAY));
        timestamp += "-" + formatter.valueToString(cal.get(GregorianCalendar.MINUTE));
        return timestamp;
    }
   
   
View Full Code Here

Examples of javax.swing.text.NumberFormatter.valueToString()

        formatter.setFormat(new DecimalFormat("00"));
        timestamp = Integer.toString(cal.get(GregorianCalendar.YEAR));
        timestamp += "-" + formatter.valueToString(cal.get(GregorianCalendar.MONTH)+1);
        timestamp += "-" + formatter.valueToString(cal.get(GregorianCalendar.DAY_OF_MONTH));
        timestamp += "T" + formatter.valueToString(cal.get(GregorianCalendar.HOUR_OF_DAY));
        timestamp += "-" + formatter.valueToString(cal.get(GregorianCalendar.MINUTE));
        return timestamp;
    }
   
   
   
View Full Code Here

Examples of org.apache.olingo.odata2.api.edm.EdmSimpleType.valueToString()

  private EdmProperty getEdmPropertyForSelect() {
    EdmSimpleType edmType = EasyMock.createMock(EdmSimpleType.class);
    EasyMock.expect(edmType.getKind()).andStubReturn(EdmTypeKind.SIMPLE);
    Facets facets = new Facets().setNullable(false);
    try {
      EasyMock.expect(edmType.valueToString(new Integer(2), EdmLiteralKind.URI, facets)).andStubReturn("2");
      EasyMock.expect(edmType.valueToString(new Integer(2), EdmLiteralKind.DEFAULT, facets)).andStubReturn("2");
    } catch (EdmSimpleTypeException e1) {
      fail("There is an exception in mocking EdmType object " + e1.getMessage());
    }
    EasyMock.replay(edmType);
View Full Code Here

Examples of org.apache.olingo.odata2.api.edm.EdmSimpleType.valueToString()

    EdmSimpleType edmType = EasyMock.createMock(EdmSimpleType.class);
    EasyMock.expect(edmType.getKind()).andStubReturn(EdmTypeKind.SIMPLE);
    Facets facets = new Facets().setNullable(false);
    try {
      EasyMock.expect(edmType.valueToString(new Integer(2), EdmLiteralKind.URI, facets)).andStubReturn("2");
      EasyMock.expect(edmType.valueToString(new Integer(2), EdmLiteralKind.DEFAULT, facets)).andStubReturn("2");
    } catch (EdmSimpleTypeException e1) {
      fail("There is an exception in mocking EdmType object " + e1.getMessage());
    }
    EasyMock.replay(edmType);
    EdmProperty edmProperty = EasyMock.createMock(EdmProperty.class);
View Full Code Here

Examples of org.apache.olingo.odata2.api.edm.EdmSimpleType.valueToString()

    ODataResponse response;
    if (type == EdmSimpleTypeKind.Binary.getEdmSimpleTypeInstance()) {
      response = EntityProvider.writeBinary(((BinaryData) data).getMimeType(), ((BinaryData) data).getData());
    } else {
      final String value = type.valueToString(data, EdmLiteralKind.DEFAULT, null);
      response = EntityProvider.writeText(value == null ? "" : value);
    }
    return ODataResponse.fromResponse(response).build();
  }
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.