/** * Rellena los datos del bean a partir de un nodo DOM en formato TDI XML * * @param __node Nodo DOM que contiene los datos del bean en formato TDI XML * @throws Exception Cuando el stream no tiene los datos adecuados para rellenar el bean */ public void fromXML(org.w3c.dom.Element __node) throws Exception { { // Buscar el tamaqo del array org.w3c.dom.Element __element = getNodeByName(__node, "subproperties"); int __size = 0; if (__element != null) { __size = Integer.parseInt(__element.getAttribute("size")); } // Rellenar los valores del array for (int i = 0; i < __size; i++) { org.w3c.dom.Element __element2 = getNodeByName(__element, "subproperties_" + i); org.qualipso.advdoc.ws.client.metadata.beans.ResourceElement __entry; if (__element2.getAttribute("package") != null && __element2.getAttribute("package").length() != 0) { __entry = (org.qualipso.advdoc.ws.client.metadata.beans.ResourceElement) Class.forName( __element2.getAttribute("package") + "." + __element2.getAttribute("type")) .newInstance(); } else { __entry = new org.qualipso.advdoc.ws.client.metadata.beans.ResourceElement(); } __entry.fromXML(__element2); addSubproperties(__entry); } } setChanged(); }
/** * Rellena el bean con los datos de una tabla hash en la forma clave/valor * * @param __params__ Tabla hash que contiene los objetos a partir de los cuales se va a rellenar * el bean * @throws Exception Cuando la tabla hash no contiene los valores adecuados para rellenar el bean */ public void fromRPC(java.util.Hashtable __params__) throws Exception { Object __object_subproperties = __params__.get("subproperties"); if (__object_subproperties == null) { throw new Exception( getClass().getName() + ".fromRPC() No se encuentra el atributo vector subproperties"); } if (!(__object_subproperties instanceof java.util.Vector)) { throw new Exception( getClass().getName() + ".fromRPC() El atributo subproperties no es de tipo Vector"); } java.util.Vector __vector_subproperties = (java.util.Vector) __object_subproperties; for (int i = 0; i < __vector_subproperties.size(); i++) { Object __element__ = __vector_subproperties.elementAt(i); if (!(__element__ instanceof java.util.Hashtable)) { throw new Exception( getClass().getName() + ".fromRPC() El atributo subproperties no es de tipo Hashtable"); } java.util.Hashtable __hashtable__ = (java.util.Hashtable) __element__; org.qualipso.advdoc.ws.client.metadata.beans.ResourceElement __value__; String __constructor__ = (String) __hashtable__.get("__constructor__"); // Si existe el atributo __constructor__ crear el objeto de la clase indicada if (__constructor__ == null || __constructor__.equals("")) { __value__ = new org.qualipso.advdoc.ws.client.metadata.beans.ResourceElement(); } else { __value__ = (org.qualipso.advdoc.ws.client.metadata.beans.ResourceElement) Class.forName(__constructor__).newInstance(); } __value__.fromRPC(__hashtable__); addSubproperties(__value__); } setChanged(); }
/** * Rellena el objeto con los datos de otro objeto * * @param object Objeto a copiar */ public void set(GetSubProperties_resp object) { this.subproperties.clear(); for (int i = 0; i < object.subproperties.size(); i++) { addSubproperties( new org.qualipso.advdoc.ws.client.metadata.beans.ResourceElement( object.getSubproperties(i))); } setChanged(); }
/** * Constructor con los atributos de esta clase y sus superclases * * @param subproperties */ public GetSubProperties_resp( org.qualipso.advdoc.ws.client.metadata.beans.ResourceElement[] subproperties) { for (int __i = 0; __i < subproperties.length; __i++) { addSubproperties(subproperties[__i]); } }