@Test public void shouldAllowMultipleSiblingsDefinitionIfOneSibling() throws Exception { NamespaceRegistry registry = context.getNamespaceRegistry(); JcrNodeDefinition def = repoTypeManager.getNodeTypes() .findChildNodeDefinitions(JcrNtLexicon.NODE_TYPE, null) .findBestDefinitionForChild(JcrLexicon.PROPERTY_DEFINITION, JcrNtLexicon.PROPERTY_DEFINITION, false, SiblingCounter.oneSibling()); assertThat(def, is(notNullValue())); assertThat(def.getName(), is(JcrLexicon.PROPERTY_DEFINITION.getString(registry))); }
@Override public NodeTypes getNodeTypes() { return nodeTypesCache; }
RepositoryNodeTypeManager implements ChangeSetListener, NodeTypes.Supplier { @Override public NodeTypes getNodeTypes() { return nodeTypesCache; } }
RepositoryNodeTypeManager implements ChangeSetListener, NodeTypes.Supplier { @Override public NodeTypes getNodeTypes() { return nodeTypesCache; } RepositoryNodeTypeManager( JcrRepository.RunningState repository,
                               boolean includeColumnsForInheritedProperties,
                               boolean includePseudoColumnsInSelectStar ); }
RepositoryNodeTypeManager implements ChangeSetListener, NodeTypes.Supplier { @Override public NodeTypes getNodeTypes() { return nodeTypesCache; } RepositoryNodeTypeManager( JcrRepository.RunningState repository,
                               boolean includeColumnsForInheritedProperties,
                               boolean includePseudoColumnsInSelectStar ); @Override NodeTypes getNodeTypes(); @Override void notify( ChangeSet changeSet ); @Override String toString(); }
RepositoryNodeTypeManager implements ChangeSetListener, NodeTypes.Supplier { @Override public NodeTypes getNodeTypes() { return nodeTypesCache; } RepositoryNodeTypeManager( JcrRepository.RunningState repository,
                               boolean includeColumnsForInheritedProperties,
                               boolean includePseudoColumnsInSelectStar ); @Override NodeTypes getNodeTypes(); @Override void notify( ChangeSet changeSet ); @Override String toString();  }