Package org.brerp.sped.nfe.util
Class ValidaXML
java.lang.Object
org.brerp.sped.nfe.util.ValidaXML
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Retorna a string passada como parâmetro com os caracteres inválidos para validação de schema XML da Nfe, conforme tipo TString no XSD nfe_v1.10.xsd.static String
validaCancNFe
(String stringXml, String versao) static String
validaConsCad
(String stringXml, String versao) static String
validaConsReciNFe
(String stringXml, String versao) static String
validaConsSitNFe
(String stringXml, String versao) static String
validaConsStatServ
(String stringXml, String versao) static String
Método que faz a validação de arquivos XML.static void
ValidaDocEx
(String xmlContent, String xsdName, String service) Método que faz a validação de arquivos XML.static String
validaEnvCanc
(String stringXml, String versao) Validate xml file against xsd schema (xsd-evento-canc/envEventoCancNFe_v1.00.xsd)static String
validaEnvCCe
(String stringXml, String versao) static String
validaEnvEventoCancEntregaNFe
(String stringXML, String versao) Validate xml file against xsd schema (xsd-evento-entrega/envEventoCancEntregaNFe_v1.00.xsd)static String
validaEnvEventoCancInsucessoNFe
(String stringXML, String versao) Validate xml file against xsd schema (xsd-evento-insucesso-entrega/envEventoCancInsucessoNFe_v1.00.xsd)static String
validaEnvEventoEntregaNFe
(String stringXML, String versao) Validate xml file against xsd schema (xsd-evento-entrega/envEventoEntregaNFe_v1.00.xsd)static String
validaEnvEventoInsucessoNFe
(String stringXML, String versao) Validate xml file against xsd schema (xsd-evento-insucesso-entrega/envEventoInsucessoNFe_v1.00.xsd)static String
validaEnviNFe
(String stringXml, String versao) static String
validaEnvManif
(String stringXml, String versao) Validate xml file against xsd schema (xsd-manifesta-dest/envConfRecebto_v1.00.xsd)static String
validaInutNFe
(String stringXml, String versao) static String
static String
validaProcCCeNFe
(String stringXml, String versao) static String
validaProcEventoCancNFe
(String stringXml, String versao) Validate xml file against xsd schema (xsd-evento-canc/procEventoCancNFe_v1.00.xsd)static String
validaProcEventoManifNFe
(String stringXml, String versao) Validate xml file against xsd schema (xsd-manifesta-dest/procConfRecebtoNFe_v1.00.xsd)static String
validaProcNFe
(String stringXml, String versao) static String
validaRetCancNFe
(String stringXml, String versao) static String
validaRetConsReciNFe
(String stringXml, String versao) static String
validaRetConsSitNFe
(String stringXml, String versao) static String
validaRetEnviNFe
(String stringXml, String versao) static String
validaRetInutNFe
(String stringXml, String versao)
-
Constructor Details
-
ValidaXML
public ValidaXML()
-
-
Method Details
-
ValidaDocEx
public static void ValidaDocEx(String xmlContent, String xsdName, String service) throws AdempiereException Método que faz a validação de arquivos XML.- Parameters:
xmlContent
-xsdName
-- Throws:
Throwable
AdempiereException
-
ValidaDoc
Método que faz a validação de arquivos XML.- Parameters:
fullFileName
-xsdFullFileName
-- Returns:
- Throws:
Throwable
-
validaEnviNFe
-
validaNFe
-
validaRetEnviNFe
-
validaConsReciNFe
-
validaRetConsReciNFe
-
validaConsSitNFe
-
validaRetConsSitNFe
-
validaProcNFe
-
validaCancNFe
-
validaRetCancNFe
-
validaInutNFe
-
validaConsStatServ
-
validaConsCad
-
validaRetInutNFe
-
validaEnvCCe
-
validaProcCCeNFe
-
validaEnvCanc
Validate xml file against xsd schema (xsd-evento-canc/envEventoCancNFe_v1.00.xsd)- Parameters:
stringXml
-- Returns:
- validation result
-
validaProcEventoCancNFe
Validate xml file against xsd schema (xsd-evento-canc/procEventoCancNFe_v1.00.xsd)- Parameters:
stringXml
-- Returns:
- validation result
-
validaEnvManif
Validate xml file against xsd schema (xsd-manifesta-dest/envConfRecebto_v1.00.xsd)- Parameters:
stringXml
-- Returns:
- validation result
-
validaProcEventoManifNFe
Validate xml file against xsd schema (xsd-manifesta-dest/procConfRecebtoNFe_v1.00.xsd)- Parameters:
stringXml
-- Returns:
- validation result
-
validaEnvEventoEntregaNFe
Validate xml file against xsd schema (xsd-evento-entrega/envEventoEntregaNFe_v1.00.xsd)- Parameters:
stringXml
-- Returns:
- validation result
-
validaEnvEventoCancEntregaNFe
Validate xml file against xsd schema (xsd-evento-entrega/envEventoCancEntregaNFe_v1.00.xsd)- Parameters:
stringXml
-- Returns:
- validation result
-
validaEnvEventoInsucessoNFe
Validate xml file against xsd schema (xsd-evento-insucesso-entrega/envEventoInsucessoNFe_v1.00.xsd)- Parameters:
stringXml
-- Returns:
- validation result
-
validaEnvEventoCancInsucessoNFe
Validate xml file against xsd schema (xsd-evento-insucesso-entrega/envEventoCancInsucessoNFe_v1.00.xsd)- Parameters:
stringXml
-- Returns:
- validation result
-
removeCaracterInvalido
Retorna a string passada como parâmetro com os caracteres inválidos para validação de schema XML da Nfe, conforme tipo TString no XSD nfe_v1.10.xsd.- Parameters:
str
- String- Returns:
- string
-