All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.cjs.predicates.cjs Maven / Gradle / Ivy

The newest version!
"use strict";

var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
exports.__esModule = true;
exports.isStandardIdentifierElement = exports.isStandardElement = exports.isScenarioElement = exports.isRequirementLevelElement = exports.isRequirementElement = exports.isPrincipleElement = exports.isMainElement = exports.isInfoElement = void 0;
var _apidomCore = require("@swagger-api/apidom-core");
var _Main = _interopRequireDefault(require("./elements/Main.cjs"));
var _Info = _interopRequireDefault(require("./elements/Info.cjs"));
var _Principle = _interopRequireDefault(require("./elements/Principle.cjs"));
var _Requirement = _interopRequireDefault(require("./elements/Requirement.cjs"));
var _RequirementLevel = _interopRequireDefault(require("./elements/RequirementLevel.cjs"));
var _Scenario = _interopRequireDefault(require("./elements/Scenario.cjs"));
var _Standard = _interopRequireDefault(require("./elements/Standard.cjs"));
var _StandardIdentifier = _interopRequireDefault(require("./elements/StandardIdentifier.cjs"));
const isMainElement = exports.isMainElement = (0, _apidomCore.createPredicate)(({
  hasBasicElementProps,
  isElementType,
  primitiveEq
}) => {
  return element => element instanceof _Main.default || hasBasicElementProps(element) && isElementType('main', element) && primitiveEq('object', element);
});
const isInfoElement = exports.isInfoElement = (0, _apidomCore.createPredicate)(({
  hasBasicElementProps,
  isElementType,
  primitiveEq
}) => {
  return element => element instanceof _Info.default || hasBasicElementProps(element) && isElementType('info', element) && primitiveEq('object', element);
});
const isPrincipleElement = exports.isPrincipleElement = (0, _apidomCore.createPredicate)(({
  hasBasicElementProps,
  isElementType,
  primitiveEq
}) => {
  return element => element instanceof _Principle.default || hasBasicElementProps(element) && isElementType('principle', element) && primitiveEq('object', element);
});
const isRequirementElement = exports.isRequirementElement = (0, _apidomCore.createPredicate)(({
  hasBasicElementProps,
  isElementType,
  primitiveEq
}) => {
  return element => element instanceof _Requirement.default || hasBasicElementProps(element) && isElementType('requirement', element) && primitiveEq('object', element);
});
const isRequirementLevelElement = exports.isRequirementLevelElement = (0, _apidomCore.createPredicate)(({
  hasBasicElementProps,
  isElementType,
  primitiveEq
}) => {
  return element => element instanceof _RequirementLevel.default || hasBasicElementProps(element) && isElementType('requirementLevel', element) && primitiveEq('string', element);
});
const isScenarioElement = exports.isScenarioElement = (0, _apidomCore.createPredicate)(({
  hasBasicElementProps,
  isElementType,
  primitiveEq
}) => {
  return element => element instanceof _Scenario.default || hasBasicElementProps(element) && isElementType('scenario', element) && primitiveEq('object', element);
});
const isStandardElement = exports.isStandardElement = (0, _apidomCore.createPredicate)(({
  hasBasicElementProps,
  isElementType,
  primitiveEq
}) => {
  return element => element instanceof _Standard.default || hasBasicElementProps(element) && isElementType('standard', element) && primitiveEq('object', element);
});
const isStandardIdentifierElement = exports.isStandardIdentifierElement = (0, _apidomCore.createPredicate)(({
  hasBasicElementProps,
  isElementType,
  primitiveEq
}) => {
  return element => element instanceof _StandardIdentifier.default || hasBasicElementProps(element) && isElementType('standardIdentifier', element) && primitiveEq('array', element);
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy