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

How to use
Tree
in
org.apache.chemistry.opencmis.client.api

Best Java code snippets using org.apache.chemistry.opencmis.client.api.Tree (Showing top 4 results out of 315)

origin: ModeShape/modeshape

/**
 * Import CMIS types to JCR repository.
 * 
 * @param types CMIS types
 * @param typeManager JCR type manager
 * @param registry
 * @throws RepositoryException if there is a problem importing the types
 */
private void importTypes( List<Tree<ObjectType>> types,
             NodeTypeManager typeManager,
             NamespaceRegistry registry ) throws RepositoryException {
  for (Tree<ObjectType> tree : types) {
    importType(tree.getItem(), typeManager, registry);
    importTypes(tree.getChildren(), typeManager, registry);
  }
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-test-tck

  addResult(results, createResult(FAILURE, "Folder descendants contain a null tree!"));
} else {
  checkChild(session, results, folder, child.getItem());
  addResult(results, createResult(FAILURE, "Folder tree contains a null tree!"));
} else {
  checkChild(session, results, folder, child.getItem());
origin: deas/alfresco

/**
 * Add to map
 * 
 * @param map
 * @param types
 * @param parentType
 */
private void addToMap(Map<String, String> map, List<Tree<ObjectType>> types, String parentType)
{
  if (types != null)
  {
    for (Tree<ObjectType> type : types)
    {
      String typeName = type.getItem().getQueryName();
      map.put(typeName, parentType);
      addToMap(map, type.getChildren(), typeName);
    }
  }
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-test-tck

addResult(checkTypeDefinition(session, tree.getItem(), "Type spec compliance: "
    + tree.getItem().getId()));
  TypeDefinition reloadedType = session.getTypeDefinition(tree.getItem().getId());
          + tree.getItem().getId());
  addResult(assertEquals(tree.getItem(), reloadedType, null, failure));
} catch (CmisObjectNotFoundException e) {
  addResult(createResult(FAILURE,
      "Type fetched via getTypeDescendants() is not available via getTypeDefinition(): "
          + tree.getItem().getId(), e, false));
  ItemIterable<ObjectType> reloadedTypeChildren = session.getTypeChildren(tree.getItem().getId(),
      true);
  if (tree.getChildren() == null) {
    failure = createResult(FAILURE,
        "Type children fetched via getTypeDescendants() don't match type children fetched via getTypeChildren(): "
            + tree.getItem().getId());
    addResult(assertEquals(0, typeChilden.size(), null, failure));
  } else {
    for (Tree<ObjectType> childType : tree.getChildren()) {
      if ((childType != null) && (childType.getItem() != null)) {
        typeDescendants.put(childType.getItem().getId(), childType.getItem());
            + tree.getItem().getId());
    addResult(assertEquals(typeDescendants.size(), typeChilden.size(), null, failure));
org.apache.chemistry.opencmis.client.apiTree

Javadoc

Basic tree structure.

Most used methods

  • getChildren
    Returns the children.
  • getItem
    Returns the item on this level.

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • ImageIO (javax.imageio)
  • Top plugins for WebStorm
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