public MapXNode getFilterClauseXNode() { if (this.filterClauseXNode == null) { return null; } else { return this.filterClauseXNode.clone(); } }
/** * Creates a new {@code QueryType} instance by deeply copying a given {@code QueryType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public SearchFilterType(final SearchFilterType o) { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 super(); if (o == null) { throw new NullPointerException("Cannot create a copy of 'SearchFilterType' from 'null'."); } this.filterClauseXNode = o.filterClauseXNode.clone(); }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public SearchFilterType clone() { final SearchFilterType clone; try { clone = this.getClass().newInstance(); // TODO fix this using super.clone() } catch (InstantiationException|IllegalAccessException e) { throw new IllegalStateException("Couldn't instantiate " + this.getClass() + ": " + e.getMessage(), e); } clone.description = this.description; if (this.filterClauseXNode != null) { clone.filterClauseXNode = this.filterClauseXNode.clone(); } return clone; }