/** * Returns the contained object. * * @return */ Object getObject () throws JIException { return this.obj == null ? getArray () : this.obj; }
/** Returns the contained object. * * @return */ Object getObject() throws JIException { return obj == null ? getArray() : obj; }
/** Returns the contained object. * * @return */ Object getObject() throws JIException { return obj == null ? getArray() : obj; }
/**Retrieves the contained object as <code>JIArray</code>. Only 1 and 2 dim arrays are supported currently. * Please note that this array is <b>not</b> backed by this variant and is a <b>new</b> copy. If the array * is <code>IJIComObject</code>s, please make sure to use <code>JIObjectFactory.narrowObject()</code> to * get the right instance. * * @return * @throws JIException */ public JIArray getObjectAsArray() throws JIException { checkValidity(); return ((VariantBody)member.getReferent()).getArray(); }
/**Retrieves the contained object as <code>JIArray</code>. Only 1 and 2 dim arrays are supported currently. * Please note that this array is <b>not</b> backed by this variant and is a <b>new</b> copy. If the array * is <code>IJIComObject</code>s, please make sure to use <code>JIObjectFactory.narrowObject()</code> to * get the right instance. * * @return * @throws JIException */ public JIArray getObjectAsArray() throws JIException { checkValidity(); return ((VariantBody)member.getReferent()).getArray(); }
/** * Retrieves the contained object as <code>JIArray</code>. Only 1 and 2 dim * arrays are supported currently. * Please note that this array is <b>not</b> backed by this variant and is a * <b>new</b> copy. If the array * is <code>IJIComObject</code>s, please make sure to use * <code>JIObjectFactory.narrowObject()</code> to * get the right instance. * * @return * @throws JIException */ public JIArray getObjectAsArray () throws JIException { checkValidity (); return ( (VariantBody)this.member.getReferent () ).getArray (); }
try array = variant.getArray ();
array = variant.getArray(); } catch (JIException e) { throw new JIRuntimeException(e.getErrorCode());
array = variant.getArray(); } catch (JIException e) { throw new JIRuntimeException(e.getErrorCode());