Class RequiredAttribute

  • All Implemented Interfaces:
    java.lang.Comparable<RequiredAttribute>

    public class RequiredAttribute
    extends java.lang.Object
    implements java.lang.Comparable<RequiredAttribute>
    Represents hierarchical structure of required attributes. Children of each level are sorted by their branch length. In other words, children are sorted by the number of descendants. For example: CatalogVersion(version[0 descendants], catalog[1 descendant](id[0 descendants]))
    • Constructor Detail

      • RequiredAttribute

        public RequiredAttribute​(TypeModel typeModel,
                                 java.lang.String enclosingType,
                                 java.lang.String qualifier,
                                 boolean unique,
                                 boolean mandatory,
                                 boolean partOf)
    • Method Detail

      • getTypeModel

        public TypeModel getTypeModel()
      • isUnique

        public boolean isUnique()
      • isMandatory

        public boolean isMandatory()
      • getEnclosingType

        public java.lang.String getEnclosingType()
      • getQualifier

        public java.lang.String getQualifier()
      • isPartOf

        public boolean isPartOf()
      • isRoot

        public boolean isRoot()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object