Class CollectionResourceDTO
- java.lang.Object
-
- org.opennms.netmgt.collection.dto.CollectionResourceDTO
-
public class CollectionResourceDTO extends java.lang.ObjectThe @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 booleanequals(java.lang.Object obj)java.util.List<Attribute<?>>getAttributes()ResourcegetResource()inthashCode()voidsetAttributes(java.util.List<Attribute<?>> attributes)voidsetResource(Resource resource)java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-