public void toString(ToStringBuilder toStringBuilder) { { Object theAny; theAny = this.getAny(); toStringBuilder.append("any", theAny); } }
public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getAny()); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof NotificationMessageHolderType.Message)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final NotificationMessageHolderType.Message that = ((NotificationMessageHolderType.Message) object); equalsBuilder.append(this.getAny(), that.getAny()); }
/** * method that get the content of a {@link Message} as a {@link Element}. * * @param messageContent from which the xml representation is supposed to be found * @return a {@link Element} object * @throws WSNotificationExtensionException */ public static Element getContentFromMessage(Message messageContent) { Element result = null; try { result =(Element) ((com.ebmwebsourcing.wsstar.jaxb.notification.base.NotificationMessageHolderType.Message)((AbstractSchemaElementImpl<?>) messageContent).getModel()).getAny(); } catch (ClassCastException e) {} return result ; }
@Override public final Element getAny() { Object jaxbAny = this.jaxbTypeObj.getAny(); return (jaxbAny instanceof Element)?(Element)jaxbAny:null; }
public Element getContent() { Object objFromModel = this.model.getAny(); return (objFromModel instanceof Element)? (Element)objFromModel : null; }
public Object copyTo(Object target, CopyBuilder copyBuilder) { final NotificationMessageHolderType.Message copy = ((target == null)?new NotificationMessageHolderType.Message():((NotificationMessageHolderType.Message) target)); { Object sourceAny; sourceAny = this.getAny(); Object copyAny = ((Object) copyBuilder.copy(sourceAny)); copy.setAny(copyAny); } return copy; }