/** * Constructs a new ParameterNameValue object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param parameterName * The name of the parameter. */ public ParameterNameValue(String parameterName) { setParameterName(parameterName); }
/** * <p> * The name of the parameter. * </p> * * @param parameterName * The name of the parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterNameValue withParameterName(String parameterName) { setParameterName(parameterName); return this; }
/** * Constructs a new ParameterNameValue object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param parameterName * The name of the parameter. * @param parameterValue * The value of the parameter. */ public ParameterNameValue(String parameterName, String parameterValue) { setParameterName(parameterName); setParameterValue(parameterValue); }
public ParameterNameValue unmarshall(StaxUnmarshallerContext context) throws Exception { ParameterNameValue parameterNameValue = new ParameterNameValue(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return parameterNameValue; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ParameterName", targetDepth)) { parameterNameValue.setParameterName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ParameterValue", targetDepth)) { parameterNameValue.setParameterValue(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return parameterNameValue; } } } }
/** * Constructs a new ParameterNameValue object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param parameterName * The name of the parameter. */ public ParameterNameValue(String parameterName) { setParameterName(parameterName); }
/** * <p> * The name of the parameter. * </p> * * @param parameterName * The name of the parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterNameValue withParameterName(String parameterName) { setParameterName(parameterName); return this; }
/** * Constructs a new ParameterNameValue object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param parameterName * The name of the parameter. * @param parameterValue * The value of the parameter. */ public ParameterNameValue(String parameterName, String parameterValue) { setParameterName(parameterName); setParameterValue(parameterValue); }
public ParameterNameValue unmarshall(StaxUnmarshallerContext context) throws Exception { ParameterNameValue parameterNameValue = new ParameterNameValue(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return parameterNameValue; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ParameterName", targetDepth)) { parameterNameValue.setParameterName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ParameterValue", targetDepth)) { parameterNameValue.setParameterValue(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return parameterNameValue; } } } }