Tabnine Logo
Property.isNode
Code IndexAdd Tabnine 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
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

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now