Codota Logo
Property.isNode
Code IndexAdd Codota to your IDE (free)

How to use
isNode
method
in
javax.jcr.Property

Best Java code snippets using javax.jcr.Property.isNode (Showing top 4 results out of 315)

  • Common ways to obtain Property
private void myMethod () {
Property p =
  • Codota IconNode node;String name;String value;node.setProperty(name, value)
  • Codota IconNode node;String relPath;node.getProperty(relPath)
  • Codota IconPropertyIterator iter;iter.nextProperty()
  • Smart code suggestions by Codota
}
origin: apache/jackrabbit

/**
 * Tests if isNode() returns false
 */
public void testIsNode() {
  assertFalse("isNode() must return false.",
      property.isNode());
}
origin: info.magnolia/magnolia-core

@Override
public boolean isNode() {
  return getWrappedProperty().isNode();
}
origin: info.magnolia/magnolia-core

@Test
public void testIsNode() throws RepositoryException {
  Property property = new MockProperty("test", "test", null);
  assertTrue(!property.isNode());
}
origin: ModeShape/modeshape

protected void assertSameProperties( Node share,
                   Node original ) throws RepositoryException {
  Set<String> originalPropertyNames = new HashSet<String>();
  for (PropertyIterator iter = original.getProperties(); iter.hasNext();) {
    Property property = iter.nextProperty();
    originalPropertyNames.add(property.getName());
  }
  for (PropertyIterator iter = share.getProperties(); iter.hasNext();) {
    Property property = iter.nextProperty();
    Property originalProperty = original.getProperty(property.getName());
    originalPropertyNames.remove(property.getName());
    assertThat(property.isModified(), is(originalProperty.isModified()));
    assertThat(property.isMultiple(), is(originalProperty.isMultiple()));
    assertThat(property.isNew(), is(originalProperty.isNew()));
    assertThat(property.isNode(), is(originalProperty.isNode()));
    assertThat(property.isSame(originalProperty), is(true)); // not the same property owner instance, but isSame()
    if (property.isMultiple()) {
      Value[] values = property.getValues();
      Value[] originalValues = originalProperty.getValues();
      assertThat(values.length, is(originalValues.length));
      for (int i = 0; i != values.length; ++i) {
        assertThat(values[i].equals(originalValues[i]), is(true));
      }
    } else {
      assertThat(property.getValue(), is(originalProperty.getValue()));
    }
  }
  assertThat("Extra properties in original: " + originalPropertyNames, originalPropertyNames.isEmpty(), is(true));
}
javax.jcrPropertyisNode

Popular methods of Property

  • getString
    Returns a String representation of the value of this property. A shortcut for Property.getValue().g
  • getValues
    Returns an array of all the values of this property. Used to access multi-value properties. The arra
  • getValue
    Returns the value of this property as a Value object. The object returned is a copy of the stored va
  • getName
  • getType
    Returns the type of this Property. One of: * PropertyType.STRING * PropertyType.BINARY * Property
  • getBinary
    Returns a Binary representation of the value of this property. A shortcut for Property.getValue().g
  • getBoolean
    Returns a boolean representation of the value of this property. A shortcut for Property.getValue().
  • remove
  • isMultiple
    Returns true if this property is multi-valued andfalse if this property is single-valued.
  • getDate
    Returns a Calendar representation of the value of this property. A shortcut for Property.getValue()
  • getLong
    Returns a long representation of the value of this property. A shortcut for Property.getValue().get
  • getDefinition
    Returns the property definition that applies to this property. In some cases there may appear to be
  • getLong,
  • getDefinition,
  • setValue,
  • getParent,
  • getPath,
  • getNode,
  • getLength,
  • getDouble,
  • getStream,
  • getSession

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • notifyDataSetChanged (ArrayAdapter)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Collectors (java.util.stream)
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