congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TextSerializationUnit.getText
Code IndexAdd Tabnine to your IDE (free)

How to use
getText
method
in
org.milyn.delivery.dom.serialize.TextSerializationUnit

Best Java code snippets using org.milyn.delivery.dom.serialize.TextSerializationUnit.getText (Showing top 2 results out of 315)

origin: org.milyn/milyn-smooks-all

private String extractTextContent(Node node, ExecutionContext executionContext) {
  if(node.getNodeType() == Node.TEXT_NODE) {
    return node.getTextContent();
  } else if(node.getNodeType() == Node.ELEMENT_NODE && ContextObjectSerializationUnit.isContextObjectElement((Element) node)) {
    String contextKey = ContextObjectSerializationUnit.getContextKey((Element) node);
    return (String) executionContext.getAttribute(contextKey);
  } else if(node.getNodeType() == Node.ELEMENT_NODE && TextSerializationUnit.isTextElement((Element) node)) {
    return TextSerializationUnit.getText((Element) node);
  } else {
    throw new SmooksException("Unsupported 'bindTo' or toOutStream templating action.  The bind data must be attached to a DOM Text node, or already bound to a <context-object> element.");
  }
}
origin: org.milyn/milyn-smooks-templating

private String extractTextContent(Node node, ExecutionContext executionContext) {
  if(node.getNodeType() == Node.TEXT_NODE) {
    return node.getTextContent();
  } else if(node.getNodeType() == Node.ELEMENT_NODE && ContextObjectSerializationUnit.isContextObjectElement((Element) node)) {
    String contextKey = ContextObjectSerializationUnit.getContextKey((Element) node);
    return (String) executionContext.getAttribute(contextKey);
  } else if(node.getNodeType() == Node.ELEMENT_NODE && TextSerializationUnit.isTextElement((Element) node)) {
    return TextSerializationUnit.getText((Element) node);
  } else {
    throw new SmooksException("Unsupported 'bindTo' or toOutStream templating action.  The bind data must be attached to a DOM Text node, or already bound to a <context-object> element.");
  }
}
org.milyn.delivery.dom.serializeTextSerializationUnitgetText

Popular methods of TextSerializationUnit

  • createTextElement
  • isTextElement

Popular in Java

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JButton (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now