Tabnine Logo
Property.accept
Code IndexAdd Tabnine to your IDE (free)

How to use
accept
method
in
javax.jcr.Property

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

origin: javax.jcr/jcr

PropertyIterator propIter = node.getProperties();
while (propIter.hasNext()) {
  propIter.nextProperty().accept(this);
origin: apache/jackrabbit

/**
 * Tests if a Property calls the correct visit method on an {@link
 * ItemVisitor}.
 */
public void testAccept() throws RepositoryException {
  final Property p = property;
  ItemVisitor itemVisitor = new ItemVisitor() {
    public void visit(Property property)
        throws RepositoryException {
      assertTrue("Visited Property is not the same as the one returned by visit(Property).",
          p.isSame(property));
    }
    public void visit(Node node) {
      fail("Wrong accept method executed.");
    }
  };
  p.accept(itemVisitor);
}
origin: info.magnolia/magnolia-core

@Override
public void accept(ItemVisitor visitor) throws RepositoryException {
  getWrappedProperty().accept(visitor);
}
origin: info.magnolia/magnolia-core

@Test
public void testAccept() throws Exception {
  Property property = new MockProperty("test", "test", null);
  ItemVisitor visitor = mock(ItemVisitor.class);
  property.accept(visitor);
  verify(visitor).visit(property);
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

PropertyIterator propIter = node.getProperties();
while (propIter.hasNext()) {
  propIter.nextProperty().accept(this);
origin: apache/jackrabbit

PropertyIterator propIter = node.getProperties();
while (propIter.hasNext()) {
  propIter.nextProperty().accept(this);
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

PropertyIterator propIter = node.getProperties();
while (propIter.hasNext()) {
  propIter.nextProperty().accept(this);
origin: org.apache.jackrabbit/com.springsource.org.apache.jackrabbit.commons

PropertyIterator propIter = node.getProperties();
while (propIter.hasNext()) {
  propIter.nextProperty().accept(this);
origin: org.onehippo.cms7/hippo-repository-deprecated-updater-module

propIter.nextProperty().accept(this);
javax.jcrPropertyaccept

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
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • JButton (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best plugins for Eclipse
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