This project has retired. For details please refer to its
Attic page.
DocumentTypeImpl 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.io.Serializable;
22import java.util.List;
2324import org.apache.chemistry.opencmis.client.api.DocumentType;
25import org.apache.chemistry.opencmis.client.api.ItemIterable;
26import org.apache.chemistry.opencmis.client.api.ObjectType;
27import org.apache.chemistry.opencmis.client.api.Session;
28import org.apache.chemistry.opencmis.client.api.Tree;
29import org.apache.chemistry.opencmis.commons.definitions.DocumentTypeDefinition;
30import org.apache.chemistry.opencmis.commons.impl.dataobjects.DocumentTypeDefinitionImpl;
3132/**33 * Document type.34 */35publicclassDocumentTypeImplextends DocumentTypeDefinitionImpl implements DocumentType, Serializable {
3637privatestaticfinallong serialVersionUID = 1L;
3839privatefinalObjectTypeHelper helper;
4041publicDocumentTypeImpl(Session session, DocumentTypeDefinition typeDefinition) {
42 initialize(typeDefinition);
43 setContentStreamAllowed(typeDefinition.getContentStreamAllowed());
44 setIsVersionable(typeDefinition.isVersionable());
45 helper = newObjectTypeHelper(session, this);
46 }
4748public ObjectType getBaseType() {
49return helper.getBaseType();
50 }
5152public ItemIterable<ObjectType> getChildren() {
53return helper.getChildren();
54 }
5556public List<Tree<ObjectType>> getDescendants(int depth) {
57return helper.getDescendants(depth);
58 }
5960public ObjectType getParentType() {
61return helper.getParentType();
62 }
6364publicboolean isBaseType() {
65return helper.isBaseType();
66 }
6768 }