This project has retired. For details please refer to its
Attic page.
PolicyTypeImpl 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.ItemIterable;
25import org.apache.chemistry.opencmis.client.api.ObjectType;
26import org.apache.chemistry.opencmis.client.api.PolicyType;
27import org.apache.chemistry.opencmis.client.api.Session;
28import org.apache.chemistry.opencmis.client.api.Tree;
29import org.apache.chemistry.opencmis.commons.definitions.PolicyTypeDefinition;
30import org.apache.chemistry.opencmis.commons.impl.dataobjects.PolicyTypeDefinitionImpl;
3132/**33 * Policy type.34 */35publicclassPolicyTypeImplextends PolicyTypeDefinitionImpl implements PolicyType, Serializable {
3637privatestaticfinallong serialVersionUID = 1L;
3839privatefinalObjectTypeHelper helper;
4041publicPolicyTypeImpl(Session session, PolicyTypeDefinition typeDefinition) {
42 initialize(typeDefinition);
43 helper = newObjectTypeHelper(session, this);
44 }
4546public ObjectType getBaseType() {
47return helper.getBaseType();
48 }
4950public ItemIterable<ObjectType> getChildren() {
51return helper.getChildren();
52 }
5354public List<Tree<ObjectType>> getDescendants(int depth) {
55return helper.getDescendants(depth);
56 }
5758public ObjectType getParentType() {
59return helper.getParentType();
60 }
6162publicboolean isBaseType() {
63return helper.isBaseType();
64 }
6566 }