Class CollectionResourceDTO


  • public class CollectionResourceDTO
    extends java.lang.Object
    The @XmlJavaTypeAdapter annotation doesn't work properly when using the @XmlElements annotation unless we explicitly declare the types using @XmlElement. These are defined bellow as variables named workaround_*. For further details, see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=419310 http://stackoverflow.com/questions/19266097/jaxb-moxy-using-xmlelements-with-xmladapter
    Author:
    jwhite
    • Constructor Detail

      • CollectionResourceDTO

        public CollectionResourceDTO()
      • CollectionResourceDTO

        public CollectionResourceDTO​(Resource resource,
                                     java.util.List<Attribute<?>> attributes)
    • Method Detail

      • getResource

        public Resource getResource()
      • setResource

        public void setResource​(Resource resource)
      • getAttributes

        public java.util.List<Attribute<?>> getAttributes()
      • setAttributes

        public void setAttributes​(java.util.List<Attribute<?>> attributes)
      • toString

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

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

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