if (member.getClass().equals(JIString.class)) ((JIString)member).setDeffered(true);
/** Adds a member to this Union. The <code>member</code> is distinguished using the <code>discriminant</code>. <br> * * @param discriminant * @param member * @throws JIException * @throws IllegalArgumentException if any parameter is <code>null</code> */ public void addMember(Object discriminant, Object member) throws JIException { if (discriminant == null || member == null) { throw new IllegalArgumentException(JISystem.getLocalizedMessage(JIErrorCodes.JI_UNION_NULL_DISCRMINANT)); } if (!discriminant.getClass().equals(discriminantClass)) { throw new JIException(JIErrorCodes.JI_UNION_DISCRMINANT_MISMATCH); } if (member.getClass().equals(JIPointer.class) && !((JIPointer)member).isReference()) { ((JIPointer)member).setDeffered(true); } else if (member.getClass().equals(JIString.class)) { ((JIString)member).setDeffered(true); } dsVsMember.put(discriminant,member); }
/** * Adds a member to this Union. The <code>member</code> is distinguished * using the <code>discriminant</code>. <br> * * @param discriminant * @param member * @throws JIException * @throws IllegalArgumentException * if any parameter is <code>null</code> */ public void addMember ( final Object discriminant, final Object member ) throws JIException { if ( discriminant == null || member == null ) { throw new IllegalArgumentException ( JISystem.getLocalizedMessage ( JIErrorCodes.JI_UNION_NULL_DISCRMINANT ) ); } if ( !discriminant.getClass ().equals ( this.discriminantClass ) ) { throw new JIException ( JIErrorCodes.JI_UNION_DISCRMINANT_MISMATCH ); } if ( member.getClass ().equals ( JIPointer.class ) && ! ( (JIPointer)member ).isReference () ) { ( (JIPointer)member ).setDeffered ( true ); } else if ( member.getClass ().equals ( JIString.class ) ) { ( (JIString)member ).setDeffered ( true ); } this.dsVsMember.put ( discriminant, member ); }
if (memberClass.equals(JIString.class)) ((JIString)member).setDeffered(true);
( (JIString)member ).setDeffered ( true );
if (memberClass.equals(JIString.class)) ((JIString)member).setDeffered(true);