コード例 #1
0
 public static IEnumerable <MetaEnumerationLiteral> GetEnumerationLiteralsFor(MetaClassifier enumeration)
 {
     foreach (MetaEnumerationLiteral enumerationLiteral in Instance.enumerationLiterals.All)
     {
         if (enumerationLiteral.ContainingEnumerationType == enumeration)
         {
             yield return(enumerationLiteral);
         }
     }
 }
コード例 #2
0
 public static IEnumerable <MetaDependency> GetDependenciesFor(MetaClassifier classifier)
 {
     foreach (MetaDependency dependency in Instance.dependencies.All)
     {
         if (dependency.SourceClassifierType == classifier)
         {
             yield return(dependency);
         }
     }
 }
コード例 #3
0
 public static IEnumerable <MetaAttribute> GetAttributesFor(MetaClassifier classifier)
 {
     foreach (MetaAttribute attribute in Instance.attributes.All)
     {
         if (attribute.ContainingClassifierType == classifier)
         {
             yield return(attribute);
         }
     }
 }
コード例 #4
0
 public static bool HasDependencies(MetaClassifier classifier)
 {
     return(GetDependenciesFor(classifier).Count() > 0);
 }
コード例 #5
0
 public static bool IsAssociatedClassifier(MetaClassifier classifier)
 {
     return(GetAssociationsForAssociatedClassifier(classifier).Count() > 0);
 }
コード例 #6
0
 public static IEnumerable <MetaAssociation> GetAssociationsForAssociatedClassifier(MetaClassifier classifier)
 {
     foreach (var relation in Instance.associations.All)
     {
         if (relation.AssociatedClassifierType == classifier)
         {
             yield return(relation);
         }
     }
 }
コード例 #7
0
 public static bool HasEnumerationLiterals(MetaClassifier classifier)
 {
     return(GetEnumerationLiteralsFor(classifier).Count() > 0);
 }
コード例 #8
0
 public static bool HasAttributes(MetaClassifier classifier)
 {
     return(GetAttributesFor(classifier).Count() > 0);
 }
コード例 #9
0
 public static bool HasPackages(MetaClassifier classifier)
 {
     return(GetPackageRelationsFor(classifier).Count() > 0);
 }
コード例 #10
0
 public static IEnumerable <MetaPackageClassifierRelation> GetPackageRelationsFor(MetaClassifier classifier)
 {
     foreach (MetaPackageClassifierRelation relation in Instance.packageClassifierRelations.All)
     {
         if (relation.ClassifierType == classifier)
         {
             yield return(relation);
         }
     }
 }