/** * Get the value that has been set for an external variable * @param name the name of the external variable whose value is required * @return the value that has been set for the external variable, or null if no value has been set */ public XdmValue getExternalVariable(QName name) { Object oval = context.getParameter(name.getClarkName()); if (oval == null) { return null; } if (oval instanceof ValueRepresentation) { return XdmValue.wrap((ValueRepresentation)oval); } throw new IllegalStateException(oval.getClass().getName()); }
/** * Get the value that has been set for an external variable * * @param name the name of the external variable whose value is required * @return the value that has been set for the external variable, or null if no value has been set */ public XdmValue getExternalVariable(QName name) { GroundedValue<?> oval = context.getParameter(name.getStructuredQName()); if (oval == null) { return null; } return XdmValue.wrap(oval); }
/** * Get the value that has been set for an external variable * * @param name the name of the external variable whose value is required * @return the value that has been set for the external variable, or null if no value has been set */ public XdmValue getExternalVariable(QName name) { GroundedValue<?> oval = context.getParameter(name.getStructuredQName()); if (oval == null) { return null; } return XdmValue.wrap(oval); }