34 lines
756 B
Java
34 lines
756 B
Java
/*
|
|
* Creado el 12-feb-07
|
|
*/
|
|
package com.tarisan.chipcard.tpvvs.webservicetrayicon.messages;
|
|
|
|
import es.chipcard.util.*;
|
|
import org.w3c.dom.*;
|
|
/**
|
|
* @author jjrider
|
|
*/
|
|
public abstract class CCRes extends Msg{
|
|
|
|
public CCRes(Document doc) throws Exception{
|
|
super(doc);
|
|
if(!SerClsXMLUtils.existeElemento(doc.getDocumentElement(),"CCRes")){
|
|
throw new Exception("El XML dado como argumento no es un CCRes");
|
|
}
|
|
}
|
|
|
|
protected Element getCCRes(){
|
|
return SerClsXMLUtils.dameElemento(getDocument().getDocumentElement(),"CCRes");
|
|
}
|
|
|
|
public int getTypeOfMessage(){
|
|
return this.TYPE_OF_MESSAGE_CCRES;
|
|
}
|
|
|
|
public String getDatosCliente(){
|
|
return SerClsXMLUtils.dameValorEl(getCCRes(),"DatosCliente");
|
|
}
|
|
|
|
|
|
}
|