sat
Class RFC

java.lang.Object
  |
  +--sat.ConceptSAT
        |
        +--sat.ConceptStringSAT
              |
              +--sat.RFC

public class RFC
extends ConceptStringSAT


Field Summary
protected  char[] CHAR_VALUES
           
protected  char[] DIGITO_VERIFICADOR
           
protected  char[] HOMONIMIA
           
protected  char[] SIGLAS_CONTRIBUYENTE
           
 
Fields inherited from class sat.ConceptStringSAT
MAX_SIZE, MIN_SIZE
 
Fields inherited from class sat.ConceptSAT
DESCRIPTION, KEY, PRINT_VALUE, SOURCE, VALUE, XML_VALUE
 
Constructor Summary
RFC()
          Construye un nuevo RFC.
 
Method Summary
 java.lang.String getTipoContribuyente()
          Obtener el tipo de contribuyente.
 void setValue(java.lang.String VALUE)
          Seleccionar el valor del concepto.
 
Methods inherited from class sat.ConceptStringSAT
getCharValues, getMaxSize, getMinSize, setCharValues, setMaxSize, setMinSize
 
Methods inherited from class sat.ConceptSAT
getDescription, getKey, getPrintValue, getSource, getValue, getXMLValue, reset, setDescription, setKey, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHAR_VALUES

protected char[] CHAR_VALUES

SIGLAS_CONTRIBUYENTE

protected char[] SIGLAS_CONTRIBUYENTE

HOMONIMIA

protected char[] HOMONIMIA

DIGITO_VERIFICADOR

protected char[] DIGITO_VERIFICADOR
Constructor Detail

RFC

public RFC()
Construye un nuevo RFC.
Method Detail

getTipoContribuyente

public java.lang.String getTipoContribuyente()
Obtener el tipo de contribuyente. Si el RFC contiene 12 caracteres regresará "PM" como resultado. Si el RFC contiene 13 caracteres regresará "PF" como resultado. Si el valor del RFC es nulo, regresará una cadena de caracteres vacía como resultado.
Returns:
Un objeto String correspondiente al tipo de contribuyente.

setValue

public void setValue(java.lang.String VALUE)
              throws ExceptionSAT
Seleccionar el valor del concepto. Cuando el valor del concepto es aceptado, se asigna un valor de impresión y un valor XML.
Overrides:
setValue in class ConceptStringSAT
Parameters:
VALUE - Valor del concepto.
Throws:
ExceptionSAT - Si se recibe un valor nulo, una cadena de caracteres vacía, o el valor no corresponde a un RFC permitido.