Tabnine Logo
com.orgzly.org
Code IndexAdd Tabnine to your IDE (free)

How to use com.orgzly.org

Best Java code snippets using com.orgzly.org (Showing top 20 results out of 315)

origin: orgzly/org-java

  /**
   * Removes empty lines before and after the content.
   * Called before every announcement.
   */
  private void setTrimmedPreface(OrgFile file, String preface) {
    file.setPreface(OrgStringUtils.trimLines(preface));
  }
}
origin: orgzly/org-java

/**
 * Content (body). Text after the heading.
 *
 * @return the content text
 */
public String getContent() {
  return getContentObject().toString();
}
origin: orgzly/org-java

/**
 * Removes empty lines before and after the content.
 * Called before every announcement.
 */
private void trimContent(OrgHead head) {
  head.setContent(OrgStringUtils.trimLines(head.getContent()));
}
origin: orgzly/org-java

  public String toString(OrgParserSettings settings) {
    StringBuilder str = new StringBuilder();

    OrgParserWriter parserWriter = new OrgParserWriter(settings);

    str.append(parserWriter.whiteSpacedFilePreface(file.getPreface()));

    for (OrgNodeInList nodeInList : headsInList) {
      str.append(parserWriter.whiteSpacedHead(nodeInList, file.getSettings().isIndented()));
    }

    return str.toString();
  }
}
origin: orgzly/org-java

public List<OrgRange> getTimestamps() {
  return getContentObject().getTimestamps();
}
origin: orgzly/org-java

public void setContent(String s) {
  getContentObject().set(s);
}
origin: orgzly/org-java

public void appendContent(String s) {
  getContentObject().append(s);
}
origin: orgzly/org-java

public boolean hasTimestamps() {
  return getContentObject().hasTimestamps();
}
origin: orgzly/org-java

private OrgContent getContentObject() {
  if (content == null) {
    content = new OrgContent();
  }
  return content;
}
origin: orgzly/org-java

public void addProperty(String name, String value) {
  if (properties == null) {
    properties = new OrgProperties();
  }
  properties.put(name, value);
}
origin: orgzly/org-java

/**
 * Closed time.
 *
 * @return closed time or {@code null} if not set
 */
public OrgRange getClosed() {
  if (hasClosed()) {
    return closed;
  }
  return null;
}
origin: orgzly/org-java

/**
 * CLOCK time.
 *
 * @return clock time or {@code null} if not set
 */
public OrgRange getClock() {
  if (hasClock()) {
    return clock;
  }
  return null;
}
origin: orgzly/org-java

/**
 * Scheduled time.
 *
 * @return scheduled time or {@code null} if not set
 */
public OrgRange getScheduled() {
  if (hasScheduled()) {
    return scheduled;
  }
  return null;
}
origin: orgzly/org-java

/**
 * Deadline time.
 *
 * @return deadline time or {@code null} if not set
 */
public OrgRange getDeadline() {
  if (hasDeadline()) {
    return deadline;
  }
  return null;
}
origin: orgzly/org-java

/**
 * Properties.
 *
 * @return list of properties
 */
public OrgProperties getProperties() {
  if (properties == null) {
    properties = new OrgProperties();
  }
  return properties;
}
origin: orgzly/org-java

public OrgFileSettings getSettings() {
  if (settings == null) {
    settings = new OrgFileSettings();
  }
  return settings;
}
origin: orgzly/org-java

/**
 * @return {@code true} if there is a text below heading, {@code false} otherwise
 */
public boolean hasContent() {
  return content != null && !content.isEmpty();
}
origin: orgzly/org-java

  public String toString() {
    return OrgStringUtils.join(this, DELIMITER);
  }
}
origin: orgzly/org-java

public boolean hasProperties() {
  return properties != null && !properties.isEmpty();
}
origin: orgzly/org-java

/**
 * @return the list of plain timestamps in this content text
 */
public List<OrgRange> getTimestamps() {
  if (timestamps == null) {
    timestamps = new ArrayList<>();
  }
  if (dirty) {
    reparse();
  }
  return timestamps;
}
com.orgzly.org

Most used classes

  • OrgContent
    Text below a heading.
  • OrgFile
    Org file with its preface (text before the first heading) and settings.
  • OrgFileSettings
    In-buffer settings. http://orgmode.org/manual/In_002dbuffer-settings.html
  • OrgHead
    Heading with text below it. Does not contain any coordinates (position within the outline), not even
  • OrgProperties
  • OrgDateTime,
  • OrgDateTimeUtils,
  • OrgDelay,
  • OrgEffortTime,
  • OrgInterval,
  • OrgRange,
  • OrgRepeater,
  • OrgNodeInList,
  • OrgNodeInSet,
  • OrgParsedFile,
  • OrgParser$Builder,
  • OrgParser,
  • OrgParserSettings,
  • OrgParserWriter
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