/** * <p> * The current value for the <code>MAX_ZONES_BY_REUSABLE_DELEGATION_SET</code> limit. * </p> * * @param value * The current value for the <code>MAX_ZONES_BY_REUSABLE_DELEGATION_SET</code> limit. * @return Returns a reference to this object so that method calls can be chained together. */ public ReusableDelegationSetLimit withValue(Long value) { setValue(value); return this; }
public ReusableDelegationSetLimit unmarshall(StaxUnmarshallerContext context) throws Exception { ReusableDelegationSetLimit reusableDelegationSetLimit = new ReusableDelegationSetLimit(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return reusableDelegationSetLimit; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Type", targetDepth)) { reusableDelegationSetLimit.setType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Value", targetDepth)) { reusableDelegationSetLimit.setValue(LongStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return reusableDelegationSetLimit; } } } }