public void toString(ToStringBuilder toStringBuilder) { { List<Object> theContent; theContent = this.getContent(); toStringBuilder.append("content", theContent); } { String theDialect; theDialect = this.getDialect(); toStringBuilder.append("dialect", theDialect); } }
/** * Create an instance of {@link QueryExpressionType } * */ public QueryExpressionType createQueryExpressionType() { return new QueryExpressionType(); }
public void setDialect(final String value) { this.model.setDialect(value); }
public Object copyTo(Object target, CopyBuilder copyBuilder) { final QueryExpressionType copy = ((target == null)?new QueryExpressionType():((QueryExpressionType) target)); { List<Object> sourceContent; sourceContent = this.getContent(); List<Object> copyContent = ((List<Object> ) copyBuilder.copy(sourceContent)); copy.content = null; List<Object> uniqueContentl = copy.getContent(); uniqueContentl.addAll(copyContent); } { String sourceDialect; sourceDialect = this.getDialect(); String copyDialect = ((String) copyBuilder.copy(sourceDialect)); copy.setDialect(copyDialect); } return copy; }
public void addContent(final Object value) { final List<Object> objFromModel = this.model.getContent(); if (objFromModel != null) { objFromModel.add(value); } }
/** * A way to create a {@link com.ebmwebsourcing.wsstar.jaxb.notification.base.QueryExpressionType} * object from a {@link QueryExpressionType} "api type" one * * @param apiTypeObj */ public static com.ebmwebsourcing.wsstar.jaxb.notification.base.QueryExpressionType toJaxbModel(QueryExpressionType apiTypeObj) { com.ebmwebsourcing.wsstar.jaxb.notification.base.QueryExpressionType jaxbTypeObj = null; if (apiTypeObj instanceof QueryExpressionTypeImpl){ jaxbTypeObj = ((QueryExpressionTypeImpl)apiTypeObj).getJaxbTypeObj(); } else { jaxbTypeObj = WsnbJAXBContext.WSNB_JAXB_FACTORY.createQueryExpressionType(); jaxbTypeObj.setDialect(apiTypeObj.getDialect().toString()); jaxbTypeObj.getContent().add(apiTypeObj.getContent()); } return jaxbTypeObj; }
public String getDialect() { return this.model.getDialect(); }
public String toString() { final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this); toString(toStringBuilder); return toStringBuilder.toString(); }
public int hashCode() { final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); }
public boolean equals(Object object) { if (!(object instanceof QueryExpressionType)) { return false; } if (this == object) { return true; } final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder(); equals(object, equalsBuilder); return equalsBuilder.isEquals(); }
public Object copyTo(Object target) { final CopyBuilder copyBuilder = new JAXBCopyBuilder(); return copyTo(target, copyBuilder); }
@Override public final String getContent() { String res = null; if (this.jaxbTypeObj.getContent() != null && this.jaxbTypeObj.getContent().size() > 0) { res = this.jaxbTypeObj.getContent().get(0).toString().trim(); } return res; }
@Override public final URI getDialect() { // ~~ Note : Not be null according to related xml schema URI result = null; String uriAsString = this.jaxbTypeObj.getDialect(); try { result = new URI(uriAsString); } catch (URISyntaxException e) { /*throw new WsaException(*/ QueryExpressionTypeImpl.logger.log(Level.WARNING,"The \"Dialect\" field " + "value of the \"QueryExpression\" does not respect the URI Syntax (according to" + " RFC-2396/RFC-2732).\nUri string value is :\n\t " + uriAsString + "\n"); } return result; }
public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getContent()); hashCodeBuilder.append(this.getDialect()); }
public List<Element> getContent() { final List<Element> result = new ArrayList<Element>(); final List<Object> contentOfModel = this.model.getContent(); for (final Object itemObj : contentOfModel) { if (itemObj instanceof Element) { result.add(((Element) itemObj)); } } return result; }
@Override public final void setDialect(URI dialect) { this.jaxbTypeObj.setDialect(dialect.toString()); }
/** * Create an instance of {@link QueryExpressionType } * */ public QueryExpressionType createQueryExpressionType() { return new QueryExpressionType(); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof QueryExpressionType)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final QueryExpressionType that = ((QueryExpressionType) object); equalsBuilder.append(this.getContent(), that.getContent()); equalsBuilder.append(this.getDialect(), that.getDialect()); }
@Override public final void setContent(String value) { final List<Object> objFromModel = this.jaxbTypeObj.getContent(); if (objFromModel != null) { if (objFromModel.size() > 0) { objFromModel.clear(); } objFromModel.add(0, value.trim()); } }
/** * Default constructor * @param logger logger set from inherited classes */ protected QueryExpressionTypeImpl(URI dialect, Logger logger) { this.jaxbTypeObj = WsnbJAXBContext.WSNB_JAXB_FACTORY.createQueryExpressionType(); this.jaxbTypeObj.setDialect(dialect.toString()); QueryExpressionTypeImpl.logger = (logger != null)?logger:Logger.getLogger(QueryExpressionTypeImpl.class.getSimpleName()); }