Class CollectionResourceDTO
- java.lang.Object
-
- org.opennms.netmgt.collection.dto.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 Summary
Constructors Constructor Description CollectionResourceDTO()
CollectionResourceDTO(Resource resource, java.util.List<Attribute<?>> attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<Attribute<?>>
getAttributes()
Resource
getResource()
int
hashCode()
void
setAttributes(java.util.List<Attribute<?>> attributes)
void
setResource(Resource resource)
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-