Tabnine Logo
OrgProperties
Code IndexAdd Tabnine to your IDE (free)

How to use
OrgProperties
in
com.orgzly.org

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

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

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

for (String name: properties.keySet()) {
  String value = properties.get(name);
origin: orgzly/org-java

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

  @Test
  public void testProperties() throws IOException {
    String fileContent =
        "** TODO Note\n" +
            ":PROPERTIES:\n" +
            "   :STYLE:    habit\n" +
            "   :LAST_REPEAT: [2009-10-19 Mon 00:36]\n" +
            "   :END:";

    OrgParsedFile file = parserBuilder.setInput(fileContent).build().parse();
    OrgHead head = file.getHeadsInList().get(0).getHead();

    Assert.assertTrue(head.hasProperties());
    Assert.assertEquals(2, head.getProperties().size());
  }
}
com.orgzly.orgOrgProperties

Most used methods

  • <init>
  • get
  • isEmpty
  • keySet
  • put
  • size

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JComboBox (javax.swing)
  • JFrame (javax.swing)
  • CodeWhisperer alternatives
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