public static String toString(CodeType code) { if (code == null) { return null; } return (code.getCodeSpace() == null ? "" : '{' + code.getCodeSpace() + '}') + code.getValue(); //$NON-NLS-1$ }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { super.appendFields(locator, buffer, strategy); return buffer; }
public Object clone() { return copyTo(createNewInstance()); }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof CodeType) { final CodeType copy = ((CodeType) draftCopy); if (this.isSetValue()) { String sourceValue; sourceValue = this.getValue(); String copyValue = ((String) strategy.copy(LocatorUtils.property(locator, "value", sourceValue), sourceValue)); copy.setValue(copyValue); } else { copy.value = null; } if (this.isSetCodeSpace()) { String sourceCodeSpace; sourceCodeSpace = this.getCodeSpace(); String copyCodeSpace = ((String) strategy.copy(LocatorUtils.property(locator, "codeSpace", sourceCodeSpace), sourceCodeSpace)); copy.setCodeSpace(copyCodeSpace); } else { copy.codeSpace = null; } } return draftCopy; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { String theValue; theValue = this.getValue(); strategy.appendField(locator, this, "value", buffer, theValue, this.isSetValue()); } { String theCodeSpace; theCodeSpace = this.getCodeSpace(); strategy.appendField(locator, this, "codeSpace", buffer, theCodeSpace, this.isSetCodeSpace()); } return buffer; }
public void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy strategy) { if (right instanceof CodeType) { final CodeType target = this; final CodeType leftObject = ((CodeType) left); final CodeType rightObject = ((CodeType) right); { String lhsValue; lhsValue = leftObject.getValue(); String rhsValue; rhsValue = rightObject.getValue(); target.setValue(((String) strategy.merge(LocatorUtils.property(leftLocator, "value", lhsValue), LocatorUtils.property(rightLocator, "value", rhsValue), lhsValue, rhsValue))); } { String lhsCodeSpace; lhsCodeSpace = leftObject.getCodeSpace(); String rhsCodeSpace; rhsCodeSpace = rightObject.getCodeSpace(); target.setCodeSpace(((String) strategy.merge(LocatorUtils.property(leftLocator, "codeSpace", lhsCodeSpace), LocatorUtils.property(rightLocator, "codeSpace", rhsCodeSpace), lhsCodeSpace, rhsCodeSpace))); } } }
public void addParameter(InputParameterDescription parameter) { InputDescriptionType inputDescription = getInputDescription(parameter); handleInputDescriptionForParameterType(inputDescription, parameter); String id = inputDescription.getIdentifier().getValue(); if (ids.contains(id)) { throw new IllegalStateException("Multiple declaration of inputParameter with identifier '" //$NON-NLS-1$ + id + "'"); } ids.add(id); dataInputs.getInput().add(inputDescription); }
/** * Create an instance of {@link CodeType } * */ public CodeType createCodeType() { return new CodeType(); }
public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public Object copyTo(Object target) { final CopyStrategy strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); }
public void mergeFrom(Object left, Object right) { final MergeStrategy2 strategy = JAXBMergeStrategy.INSTANCE; mergeFrom(null, null, left, right, strategy); }
public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public CodeType withValue(String value) { setValue(value); return this; }
public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
final CodeType rightObject = ((CodeType) right); Boolean valueShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetValue(), rightObject.isSetValue()); if (valueShouldBeMergedAndSet == Boolean.TRUE) { String lhsValue; lhsValue = leftObject.getValue(); String rhsValue; rhsValue = rightObject.getValue(); String mergedValue = ((String) strategy.merge(LocatorUtils.property(leftLocator, "value", lhsValue), LocatorUtils.property(rightLocator, "value", rhsValue), lhsValue, rhsValue, leftObject.isSetValue(), rightObject.isSetValue())); target.setValue(mergedValue); } else { if (valueShouldBeMergedAndSet == Boolean.FALSE) { Boolean codeSpaceShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, leftObject.isSetCodeSpace(), rightObject.isSetCodeSpace()); if (codeSpaceShouldBeMergedAndSet == Boolean.TRUE) { String lhsCodeSpace; lhsCodeSpace = leftObject.getCodeSpace(); String rhsCodeSpace; rhsCodeSpace = rightObject.getCodeSpace(); String mergedCodeSpace = ((String) strategy.merge(LocatorUtils.property(leftLocator, "codeSpace", lhsCodeSpace), LocatorUtils.property(rightLocator, "codeSpace", rhsCodeSpace), lhsCodeSpace, rhsCodeSpace, leftObject.isSetCodeSpace(), rightObject.isSetCodeSpace())); target.setCodeSpace(mergedCodeSpace); } else { if (codeSpaceShouldBeMergedAndSet == Boolean.FALSE) {
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { String theValue; theValue = this.getValue(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "value", theValue), currentHashCode, theValue, this.isSetValue()); } { String theCodeSpace; theCodeSpace = this.getCodeSpace(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "codeSpace", theCodeSpace), currentHashCode, theCodeSpace, this.isSetCodeSpace()); } return currentHashCode; }
public Object clone() { return copyTo(createNewInstance()); }
for (ProcessBriefType process : capabilities.getValue().getProcessOfferings().getProcess()) { CodeType remoteId = process.getIdentifier(); String describeProcessUrlWithId = describeProcessUrl + remoteId.getValue(); String executeUrlWithId = executeUrl + remoteId.getValue(); ProcessDescriptions processes = ExceptionHandlingUtils.handleExceptionReport( httpClient.executeFullyParametrizedGetRequest(describeProcessUrlWithId), ProcessDescriptions.class); ProcessDescriptionType remoteDescription = processes.getProcessDescription().get(0); CodeType proxyId = WpsUtils.createCodeType(proxyPrefix + ID_SEPARATOR + remoteId.getValue()); log.debug("Created proxy id [" + proxyId.getValue() + "]"); //$NON-NLS-1$ //$NON-NLS-2$ WpsProcess proxyProcess = new ProxyProcess( proxyId,
/** * Create an instance of {@link CodeType } * */ public CodeType createCodeType() { return new CodeType(); }