Examples of asText()


Examples of org.codehaus.jackson.JsonNode.asText()

        case MUST_NOT:
          return Modifier.MOD_NOT;

        default:
          throw new ParseException("Invalid value '" + value.asText() + "' for property '" + OCCUR_PROPERTY + "'");
      }
    }
    catch (final IllegalArgumentException e) {
      throw new ParseException("Invalid value '" + value.asText() + "' for property '" + OCCUR_PROPERTY + "'", e);
    }
View Full Code Here

Examples of org.codehaus.jackson.JsonNode.asText()

        default:
          throw new ParseException("Invalid value '" + value.asText() + "' for property '" + OCCUR_PROPERTY + "'");
      }
    }
    catch (final IllegalArgumentException e) {
      throw new ParseException("Invalid value '" + value.asText() + "' for property '" + OCCUR_PROPERTY + "'", e);
    }
  }

}
View Full Code Here

Examples of org.codehaus.jackson.JsonNode.asText()

    if (!value.isTextual()) {
      throw new ParseException("Invalid property '" + this.getProperty() + "': value is not textual");
    }

    return value.asText();
  }

}
View Full Code Here

Examples of org.codehaus.jackson.JsonNode.asText()

        this.url = json.path("url").asText();
        this.place = json.path("place").asText();
        this.address = json.path("address").asText();
        this.description = json.get("description").asText();
        JsonNode hashTagProp = json.path("hashTag");
        this.hashTag = hashTagProp.isNull() ? null : hashTagProp.asText();
        this.ownerId = json.get("ownerId").asText();
        this.foreImageId = Strings.emptyToNull(json.path("foreImageId").asText());
        this.backImageId = Strings.emptyToNull(json.path("backImageId").asText());
        JsonNode passcodeProp = json.path("passcode");
        this.passcode = passcodeProp.isNull() ? null : passcodeProp.asText();
View Full Code Here

Examples of org.codehaus.jackson.JsonNode.asText()

        this.hashTag = hashTagProp.isNull() ? null : hashTagProp.asText();
        this.ownerId = json.get("ownerId").asText();
        this.foreImageId = Strings.emptyToNull(json.path("foreImageId").asText());
        this.backImageId = Strings.emptyToNull(json.path("backImageId").asText());
        JsonNode passcodeProp = json.path("passcode");
        this.passcode = passcodeProp.isNull() ? null : passcodeProp.asText();
        this.draft = json.path("draft").asBoolean(false);
        {
            JsonNode ar = json.get("editorIds");
            if (ar != null) {
                this.editorIds = new ArrayList<String>();
View Full Code Here

Examples of org.codehaus.preon.buffer.ByteOrder.asText()

                    if (byteOrder == null) {
                        byteOrder = prefix.byteOrder();
                    } else {
                        if (byteOrder != prefix.byteOrder()) {
                            throw new CodecConstructionException("Two distinct types of byte orders are not supported: "
                            + "expected " + byteOrder.asText() + ", got "
                            + prefix.byteOrder().asText() + " for " + codec);
                        }
                    }
                    if (size != -1) {
                        if (size != prefix.size()) {
View Full Code Here

Examples of org.dcm4che3.data.ValidationResult.asText()

            ValidationResult result = attrs.validate(iod);
            if (result.isValid())
                System.out.println("OK");
            else {
                System.out.println("FAILED:");
                System.out.println(result.asText(attrs));
            }
        } catch (IOException e) {
            System.out.println("FAILED: " + e.getMessage());
        } finally {
            SafeClose.close(dis);
View Full Code Here

Examples of org.jitterbit.ui.MnemonicStringFactory.asText()

        private String stripMnemonicFromResource(String key) {
            ResourceBundle resources = TextDocumentPage.getResources();
            MnemonicStringFactory mnemonics = ApplicationResources.MNEMONIC_FACTORY;
            String s = resources.getString(key);
            return mnemonics.asText(s);
        }

        @Override
        public void actionPerformed(final ActionEvent e) {
            EventQueue.invokeLater(new Runnable() {
View Full Code Here

Examples of org.openide.filesystems.FileObject.asText()

            }
            FileObject file = folder.getFileObject(name, "js");
            if (file == null) {
                file = folder.createData(name, "js");
            }
            if (!file.asText().equals(js)) {
                OutputStream out = file.getOutputStream();
                try {
                    out.write(js.getBytes(encoding));
                    out.flush();
                } finally {
View Full Code Here

Examples of org.waveprotocol.wave.client.editor.impl.HtmlView.asText()

        ContentNode cnodeAfter = contentRange.getNodeAfter();
        Node htmlNodeAfter = cnodeAfter == null ? null : cnodeAfter.getImplNodelet();
        htmlRange = RestrictedRange.between(
            htmlNodeBefore, Point.inElement(htmlParent, htmlNodeAfter));

        if (partOfMutatingRange(filteredHtml.asText(previousSelectionStart.getContainer()))) {
          // This must be true if getWrapper worked correctly. Program error
          // otherwise (not browser error)
          assert firstWrapper.getImplNodelet() == htmlRange.getStartNode(filteredHtml);

          // NOTE(danilatos): We are asking the firstWrapper to give us the offset of
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.