This project has retired. For details please refer to its
Attic page.
FolderTypeImpl xref
1/*2 * Licensed to the Apache Software Foundation (ASF) under one3 * or more contributor license agreements. See the NOTICE file4 * distributed with this work for additional information5 * regarding copyright ownership. The ASF licenses this file6 * to you under the Apache License, Version 2.0 (the7 * "License"); you may not use this file except in compliance8 * with the License. You may obtain a copy of the License at9 *10 * http://www.apache.org/licenses/LICENSE-2.011 *12 * Unless required by applicable law or agreed to in writing,13 * software distributed under the License is distributed on an14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY15 * KIND, either express or implied. See the License for the16 * specific language governing permissions and limitations17 * under the License.18 */19package org.apache.chemistry.opencmis.client.runtime.objecttype;
2021import java.util.List;
2223import org.apache.chemistry.opencmis.client.api.FolderType;
24import org.apache.chemistry.opencmis.client.api.ObjectType;
25import org.apache.chemistry.opencmis.client.api.ItemIterable;
26import org.apache.chemistry.opencmis.client.api.Session;
27import org.apache.chemistry.opencmis.client.api.Tree;
28import org.apache.chemistry.opencmis.commons.definitions.FolderTypeDefinition;
29import org.apache.chemistry.opencmis.commons.impl.dataobjects.FolderTypeDefinitionImpl;
3031/**32 * Folder type.33 */34publicclassFolderTypeImplextends FolderTypeDefinitionImpl implements FolderType {
3536privatestaticfinallong serialVersionUID = 1L;
3738privatefinalObjectTypeHelper helper;
3940publicFolderTypeImpl(Session session, FolderTypeDefinition typeDefinition) {
41 initialize(typeDefinition);
42 helper = newObjectTypeHelper(session, this);
43 }
4445public ObjectType getBaseType() {
46return helper.getBaseType();
47 }
4849public ItemIterable<ObjectType> getChildren() {
50return helper.getChildren();
51 }
5253public List<Tree<ObjectType>> getDescendants(int depth) {
54return helper.getDescendants(depth);
55 }
5657public ObjectType getParentType() {
58return helper.getParentType();
59 }
6061publicboolean isBaseType() {
62return helper.isBaseType();
63 }
6465 }