Tabnine Logo
OrgFileSettings.getLastKeywordValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getLastKeywordValue
method
in
com.orgzly.org.OrgFileSettings

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

origin: orgzly/org-java

@Test
public void testFileSettingsTrimUnsupportedKeyword() throws IOException {
  OrgParsedFile file = parserBuilder.setInput("#+NAME:     value value     ").build().parse();
  Assert.assertEquals("value value", file.getFile().getSettings().getLastKeywordValue("NAME"));
}
origin: orgzly/org-java

@Test
public void testFileSettingsUnsupportedKeyword() throws IOException {
  OrgParsedFile file = parserBuilder.setInput("#+FOO: bar").build().parse();
  Assert.assertEquals("bar", file.getFile().getSettings().getLastKeywordValue("FOO"));
}
origin: orgzly/org-java

@Test
public void testFileSettingsKeywords() throws IOException {
  OrgParsedFile file = parserBuilder.setInput("#+TITLE: Wrong title\n#+NEWKEYWORD:\n#+TITLE: Org Title\n\n* TODO Note\n").build().parse();
  Assert.assertNotNull(file.getFile().getSettings());
  Assert.assertNotNull(file.getFile().getSettings().getTitle());
  Assert.assertEquals("Org Title", file.getFile().getSettings().getTitle());
  Assert.assertNull(file.getFile().getSettings().getKeywordValues(OrgFileSettings.TITLE));
  Assert.assertNull(file.getFile().getSettings().getLastKeywordValue("NEWKEYWORD"));
  Assert.assertTrue(file.getFile().getSettings().getKeywordValues("NEWKEYWORD").isEmpty());
}
com.orgzly.orgOrgFileSettingsgetLastKeywordValue

Popular methods of OrgFileSettings

  • getKeywordValues
  • isIndented
  • <init>
  • addKeywordSetting
  • getTitle
  • parseLine
    Parse line looking for in-buffer setting.
  • setIndented

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Reference (javax.naming)
  • JComboBox (javax.swing)
  • Top 12 Jupyter Notebook extensions
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