Codota Logo
CommonTemplateMarkupOutputModel.getPlainTextContent
Code IndexAdd Codota to your IDE (free)

How to use
getPlainTextContent
method
in
freemarker.core.CommonTemplateMarkupOutputModel

Best Java code snippets using freemarker.core.CommonTemplateMarkupOutputModel.getPlainTextContent (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: org.freemarker/freemarker

@Override
public final String getSourcePlainText(MO mo) throws TemplateModelException {
  return mo.getPlainTextContent();
}
origin: org.freemarker/freemarker

@Override
public boolean isEmpty(MO mo) throws TemplateModelException {
  String s = mo.getPlainTextContent();
  if (s != null) {
    return s.length() == 0;
  }
  return mo.getMarkupContent().length() == 0;
}
 
origin: org.freemarker/freemarker

@Override
public final void output(MO mo, Writer out) throws IOException, TemplateModelException {
  String mc = mo.getMarkupContent();
  if (mc != null) {
    out.write(mc);
  } else {
    output(mo.getPlainTextContent(), out);
  }
}
origin: org.freemarker/freemarker

@Override
public final String getMarkupString(MO mo) throws TemplateModelException {
  String mc = mo.getMarkupContent();
  if (mc != null) {
    return mc;
  }
  
  mc = escapePlainText(mo.getPlainTextContent());
  mo.setMarkupContet(mc);
  return mc;
}
 
origin: org.freemarker/freemarker

@Override
public final MO concat(MO mo1, MO mo2) throws TemplateModelException {
  String pc1 = mo1.getPlainTextContent();
  String mc1 = mo1.getMarkupContent();
  String pc2 = mo2.getPlainTextContent();
  String mc2 = mo2.getMarkupContent();
  
  String pc3 = pc1 != null && pc2 != null ? pc1 + pc2 : null;
  String mc3 = mc1 != null && mc2 != null ? mc1 + mc2 : null;
  if (pc3 != null || mc3 != null) {
    return newTemplateMarkupOutputModel(pc3, mc3);
  }
  
  if (pc1 != null) {
    return newTemplateMarkupOutputModel(null, getMarkupString(mo1) + mc2);
  } else {
    return newTemplateMarkupOutputModel(null, mc1 + getMarkupString(mo2));
  }
}
 
origin: org.freemarker/freemarker-gae

@Override
public final String getSourcePlainText(MO mo) throws TemplateModelException {
  return mo.getPlainTextContent();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

@Override
public final String getSourcePlainText(MO mo) throws TemplateModelException {
  return mo.getPlainTextContent();
}
origin: org.freemarker/freemarker-gae

@Override
public boolean isEmpty(MO mo) throws TemplateModelException {
  String s = mo.getPlainTextContent();
  if (s != null) {
    return s.length() == 0;
  }
  return mo.getMarkupContent().length() == 0;
}
 
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

@Override
public boolean isEmpty(MO mo) throws TemplateModelException {
  String s = mo.getPlainTextContent();
  if (s != null) {
    return s.length() == 0;
  }
  return mo.getMarkupContent().length() == 0;
}
 
origin: org.freemarker/freemarker-gae

@Override
public final void output(MO mo, Writer out) throws IOException, TemplateModelException {
  String mc = mo.getMarkupContent();
  if (mc != null) {
    out.write(mc);
  } else {
    output(mo.getPlainTextContent(), out);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

@Override
public final void output(MO mo, Writer out) throws IOException, TemplateModelException {
  String mc = mo.getMarkupContent();
  if (mc != null) {
    out.write(mc);
  } else {
    output(mo.getPlainTextContent(), out);
  }
}
origin: org.freemarker/freemarker-gae

@Override
public final String getMarkupString(MO mo) throws TemplateModelException {
  String mc = mo.getMarkupContent();
  if (mc != null) {
    return mc;
  }
  
  mc = escapePlainText(mo.getPlainTextContent());
  mo.setMarkupContet(mc);
  return mc;
}
 
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

@Override
public final String getMarkupString(MO mo) throws TemplateModelException {
  String mc = mo.getMarkupContent();
  if (mc != null) {
    return mc;
  }
  
  mc = escapePlainText(mo.getPlainTextContent());
  mo.setMarkupContet(mc);
  return mc;
}
 
origin: org.freemarker/freemarker-gae

@Override
public final MO concat(MO mo1, MO mo2) throws TemplateModelException {
  String pc1 = mo1.getPlainTextContent();
  String mc1 = mo1.getMarkupContent();
  String pc2 = mo2.getPlainTextContent();
  String mc2 = mo2.getMarkupContent();
  
  String pc3 = pc1 != null && pc2 != null ? pc1 + pc2 : null;
  String mc3 = mc1 != null && mc2 != null ? mc1 + mc2 : null;
  if (pc3 != null || mc3 != null) {
    return newTemplateMarkupOutputModel(pc3, mc3);
  }
  
  if (pc1 != null) {
    return newTemplateMarkupOutputModel(null, getMarkupString(mo1) + mc2);
  } else {
    return newTemplateMarkupOutputModel(null, mc1 + getMarkupString(mo2));
  }
}
 
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

@Override
public final MO concat(MO mo1, MO mo2) throws TemplateModelException {
  String pc1 = mo1.getPlainTextContent();
  String mc1 = mo1.getMarkupContent();
  String pc2 = mo2.getPlainTextContent();
  String mc2 = mo2.getMarkupContent();
  
  String pc3 = pc1 != null && pc2 != null ? pc1 + pc2 : null;
  String mc3 = mc1 != null && mc2 != null ? mc1 + mc2 : null;
  if (pc3 != null || mc3 != null) {
    return newTemplateMarkupOutputModel(pc3, mc3);
  }
  
  if (pc1 != null) {
    return newTemplateMarkupOutputModel(null, getMarkupString(mo1) + mc2);
  } else {
    return newTemplateMarkupOutputModel(null, mc1 + getMarkupString(mo2));
  }
}
 
freemarker.coreCommonTemplateMarkupOutputModelgetPlainTextContent

Javadoc

Maybe null, but then #getMarkupContent() isn't null.

Popular methods of CommonTemplateMarkupOutputModel

  • getMarkupContent
    Maybe null, but then #getPlainTextContent() isn't null.
  • setMarkupContet
    Use only to set the value calculated from #getPlainTextContent(), when #getMarkupContent() was still

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JButton (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now