public static boolean isFunctionalRelationship(ISemantic o) { return checkFlags(o.getType(), FUNCTIONAL_RELATIONSHIP_FLAG, CORE_FUNCTIONAL_RELATIONSHIP); }
public static boolean isClass(ISemantic o) { return checkFlags(o.getType(), TYPE_FLAG, TYPE); }
public static boolean isRelationship(ISemantic o) { return checkFlags(o.getType(), RELATIONSHIP_FLAG, CORE_RELATIONSHIP); }
public static boolean isStructuralRelationship(ISemantic o) { return checkFlags(o.getType(), STRUCTURAL_RELATIONSHIP_FLAG, CORE_STRUCTURAL_RELATIONSHIP); }
public static boolean isThing(ISemantic o) { return checkFlags(o.getType(), SUBJECT_FLAG, CORE_SUBJECT); }
public static boolean isQuality(ISemantic o) { return checkFlags(o.getType(), QUALITY_FLAG, CORE_QUALITY); }
public static boolean isProcess(ISemantic o) { return checkFlags(o.getType(), PROCESS_FLAG, CORE_PROCESS); }
public static boolean isObservability(ISemantic o) { return checkFlags(o.getType(), OBSERVABILITY_FLAG, OBSERVABILITY_TRAIT); }
public static boolean isEvent(ISemantic o) { return checkFlags(o.getType(), EVENT_FLAG, CORE_EVENT); }
public static boolean isDomain(ISemantic o) { return checkFlags(o.getType(), DOMAIN_FLAG, CORE_DOMAIN); }
public static boolean isTrait(ISemantic o) { return checkFlags(o.getType(), TRAIT_FLAG, CORE_TRAIT); }
public static boolean isAttribute(ISemantic o) { return checkFlags(o.getType(), ATTRIBUTE_FLAG, ATTRIBUTE_TRAIT); }
public static boolean isRealm(ISemantic o) { return checkFlags(o.getType(), REALM_FLAG, CORE_REALM_TRAIT); }
public static boolean isIdentity(ISemantic o) { return checkFlags(o.getType(), IDENTITY_FLAG, CORE_IDENTITY_TRAIT); }
public static boolean isRole(ISemantic o) { return checkFlags(o.getType(), ROLE_FLAG, ROLE_TRAIT); }
public static boolean isConfiguration(ISemantic o) { return checkFlags(o.getType(), CONFIGURATION_FLAG, CORE_PATTERN); }
/** * True if this is an observable particular, but not an observation. * * @param concept * @return */ public static boolean isParticular(ISemantic concept) { return concept.getType() instanceof IConcept && checkFlags(concept.getType(), PARTICULAR_FLAG, CORE_PARTICULAR) && !concept.getType().is(KLAB.c(CORE_OBSERVATION)); }