/*! * Copyright 2020 Ron Buckton * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { GraphMetadataContainer } from "./graphMetadataContainer"; import { GraphCategoryIdLike } from "./graphCategoryIdLike"; /** * Graph catagories are used to categorize graph objects such as nodes or links. */ export declare class GraphCategory extends GraphMetadataContainer { private _id; private _basedOn; /** * For internal use only. Instances should be created via `GraphSchema.categories.getOrCreate()`. */ private constructor(); /** * Gets the unique id of the category. */ get id(): GraphCategoryIdLike; /** * Gets or sets the category this category is based on. */ get basedOn(): GraphCategory | undefined; set basedOn(value: GraphCategory | undefined); /** * Determines whether this category is based on the specified category. */ isBasedOn(category: GraphCategoryIdLike | GraphCategory): boolean; }