Class ValidaXML

java.lang.Object
org.brerp.sped.nfe.util.ValidaXML

public abstract class ValidaXML extends Object
  • 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

      public static String ValidaDoc(String fullFileName, String xsdFullFileName, String service)
      Método que faz a validação de arquivos XML.
      Parameters:
      fullFileName -
      xsdFullFileName -
      Returns:
      Throws:
      Throwable
    • validaEnviNFe

      public static String validaEnviNFe(String stringXml, String versao)
    • validaNFe

      public static String validaNFe(String stringXml, String versao)
    • validaRetEnviNFe

      public static String validaRetEnviNFe(String stringXml, String versao)
    • validaConsReciNFe

      public static String validaConsReciNFe(String stringXml, String versao)
    • validaRetConsReciNFe

      public static String validaRetConsReciNFe(String stringXml, String versao)
    • validaConsSitNFe

      public static String validaConsSitNFe(String stringXml, String versao)
    • validaRetConsSitNFe

      public static String validaRetConsSitNFe(String stringXml, String versao)
    • validaProcNFe

      public static String validaProcNFe(String stringXml, String versao)
    • validaCancNFe

      public static String validaCancNFe(String stringXml, String versao)
    • validaRetCancNFe

      public static String validaRetCancNFe(String stringXml, String versao)
    • validaInutNFe

      public static String validaInutNFe(String stringXml, String versao)
    • validaConsStatServ

      public static String validaConsStatServ(String stringXml, String versao)
    • validaConsCad

      public static String validaConsCad(String stringXml, String versao)
    • validaRetInutNFe

      public static String validaRetInutNFe(String stringXml, String versao)
    • validaEnvCCe

      public static String validaEnvCCe(String stringXml, String versao)
    • validaProcCCeNFe

      public static String validaProcCCeNFe(String stringXml, String versao)
    • validaEnvCanc

      public static String validaEnvCanc(String stringXml, String versao)
      Validate xml file against xsd schema (xsd-evento-canc/envEventoCancNFe_v1.00.xsd)
      Parameters:
      stringXml -
      Returns:
      validation result
    • validaProcEventoCancNFe

      public static String validaProcEventoCancNFe(String stringXml, String versao)
      Validate xml file against xsd schema (xsd-evento-canc/procEventoCancNFe_v1.00.xsd)
      Parameters:
      stringXml -
      Returns:
      validation result
    • validaEnvManif

      public static String validaEnvManif(String stringXml, String versao)
      Validate xml file against xsd schema (xsd-manifesta-dest/envConfRecebto_v1.00.xsd)
      Parameters:
      stringXml -
      Returns:
      validation result
    • validaProcEventoManifNFe

      public static String validaProcEventoManifNFe(String stringXml, String versao)
      Validate xml file against xsd schema (xsd-manifesta-dest/procConfRecebtoNFe_v1.00.xsd)
      Parameters:
      stringXml -
      Returns:
      validation result
    • validaEnvEventoEntregaNFe

      public static String validaEnvEventoEntregaNFe(String stringXML, String versao)
      Validate xml file against xsd schema (xsd-evento-entrega/envEventoEntregaNFe_v1.00.xsd)
      Parameters:
      stringXml -
      Returns:
      validation result
    • validaEnvEventoCancEntregaNFe

      public static String validaEnvEventoCancEntregaNFe(String stringXML, String versao)
      Validate xml file against xsd schema (xsd-evento-entrega/envEventoCancEntregaNFe_v1.00.xsd)
      Parameters:
      stringXml -
      Returns:
      validation result
    • validaEnvEventoInsucessoNFe

      public static String validaEnvEventoInsucessoNFe(String stringXML, String versao)
      Validate xml file against xsd schema (xsd-evento-insucesso-entrega/envEventoInsucessoNFe_v1.00.xsd)
      Parameters:
      stringXml -
      Returns:
      validation result
    • validaEnvEventoCancInsucessoNFe

      public static String validaEnvEventoCancInsucessoNFe(String stringXML, String versao)
      Validate xml file against xsd schema (xsd-evento-insucesso-entrega/envEventoCancInsucessoNFe_v1.00.xsd)
      Parameters:
      stringXml -
      Returns:
      validation result
    • removeCaracterInvalido

      public static String removeCaracterInvalido(String str)
      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