Class CoreAttributeItem<ATTRIBUTE_GROUP extends CoreAttributeGroup>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class CoreAttributeItem<ATTRIBUTE_GROUP extends CoreAttributeGroup>
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable
    INTERNAL Purpose: Generic superclass for AttributeItem.
    See Also:
    Serialized Form
    Author:
    matt macivor
    Since:
    EclipseLink 2.5
    • Constructor Detail

      • CoreAttributeItem

        protected CoreAttributeItem()
      • CoreAttributeItem

        public CoreAttributeItem​(ATTRIBUTE_GROUP parent,
                                 java.lang.String attributeName)
    • Method Detail

      • addGroups

        public void addGroups​(java.util.Collection<ATTRIBUTE_GROUP> groups)
        INTERNAL: Adds the list of groups as to the item
      • addKeyGroups

        public void addKeyGroups​(java.util.Collection<ATTRIBUTE_GROUP> keyGroups)
      • convertClassNamesToClasses

        public void convertClassNamesToClasses​(java.lang.ClassLoader classLoader)
        INTERNAL: Convert all the class-name-based settings in this Descriptor to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes.
        Parameters:
        classLoader -
      • equals

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

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

        public java.lang.String getAttributeName()
      • getGroups

        public java.util.Map<java.lang.Object,​ATTRIBUTE_GROUP> getGroups()
      • getKeyGroup

        public ATTRIBUTE_GROUP getKeyGroup​(java.lang.Class type)
      • getKeyGroups

        public java.util.Map<java.lang.Object,​ATTRIBUTE_GROUP> getKeyGroups()
      • orderInheritance

        protected static boolean orderInheritance​(CoreAttributeGroup group,
                                                  java.util.Map<java.lang.Object,​? extends CoreAttributeGroup> subGroups)
        Will order the subGroups based on hierarchy. Returns true if the group is the new root.
        Parameters:
        group -
        subGroups -
        Returns:
        true if the group is the new root.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStringNoClassName

        public java.lang.String toStringNoClassName()