mx.bigdata.sat.cfdi
Class CFDv3

java.lang.Object
  extended by mx.bigdata.sat.cfdi.CFDv3
All Implemented Interfaces:
CFDI, CFD

public final class CFDv3
extends Object
implements CFDI


Nested Class Summary
static class CFDv3.CFDv3ComprobanteBase
           
 
Field Summary
static com.google.common.collect.ImmutableMap<String,String> PREFIXES
           
 
Constructor Summary
CFDv3(Comprobante comprobante, String... contexts)
           
CFDv3(InputStream in, String... contexts)
           
 
Method Summary
 void addNamespace(String uri, String prefix)
           
 String getCadenaOriginal()
           
 ComprobanteBase getComprobante()
           
 void guardar(OutputStream out)
           
static Comprobante newComprobante(InputStream in)
           
 void sellar(PrivateKey key, X509Certificate cert)
           
 Comprobante sellarComprobante(PrivateKey key, X509Certificate cert)
           
 void setTransformerFactory(TransformerFactory tf)
           
 void validar()
           
 void validar(ErrorHandler handler)
           
 void verificar()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIXES

public static final com.google.common.collect.ImmutableMap<String,String> PREFIXES
Constructor Detail

CFDv3

public CFDv3(InputStream in,
             String... contexts)
      throws Exception
Throws:
Exception

CFDv3

public CFDv3(Comprobante comprobante,
             String... contexts)
      throws Exception
Throws:
Exception
Method Detail

addNamespace

public void addNamespace(String uri,
                         String prefix)

setTransformerFactory

public void setTransformerFactory(TransformerFactory tf)
Specified by:
setTransformerFactory in interface CFD

sellar

public void sellar(PrivateKey key,
                   X509Certificate cert)
            throws Exception
Specified by:
sellar in interface CFD
Throws:
Exception

sellarComprobante

public Comprobante sellarComprobante(PrivateKey key,
                                     X509Certificate cert)
                              throws Exception
Throws:
Exception

validar

public void validar()
             throws Exception
Specified by:
validar in interface CFD
Throws:
Exception

validar

public void validar(ErrorHandler handler)
             throws Exception
Specified by:
validar in interface CFD
Throws:
Exception

verificar

public void verificar()
               throws Exception
Specified by:
verificar in interface CFD
Throws:
Exception

guardar

public void guardar(OutputStream out)
             throws Exception
Specified by:
guardar in interface CFD
Throws:
Exception

getCadenaOriginal

public String getCadenaOriginal()
                         throws Exception
Specified by:
getCadenaOriginal in interface CFD
Throws:
Exception

newComprobante

public static Comprobante newComprobante(InputStream in)
                                  throws Exception
Throws:
Exception

getComprobante

public ComprobanteBase getComprobante()
                               throws Exception
Specified by:
getComprobante in interface CFDI
Throws:
Exception


Copyright © 2010-2013. All Rights Reserved.