jwikidump.entidad.mapeos
Enum Plantilla

java.lang.Object
  extended by java.lang.Enum<Plantilla>
      extended by jwikidump.entidad.mapeos.Plantilla
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Plantilla>

public enum Plantilla
extends java.lang.Enum<Plantilla>

Clase Enumerativa que contiene algunas de las Plantillas mas usadas. Se componen de una Expresion Regular que determina si se trata de dicha Plantilla.
Adicionalmente se le agrego la funcion buscarPlantillaCorrespondiente() la cual permite determinar de que Plantilla se trata, a partir del contenido.


Enum Constant Summary
Desambiguacion
           
 
Method Summary
static Plantilla buscarPlantillaCorrespondiente(java.lang.String contenido)
          Encuentra la Plantilla correspondiente de acuerdo al Contenido dado.
 boolean comprobar(java.lang.String contenido)
          Comprueba si el contenido de una Plantilla ( {{ contenido }} ) concuerda con dicha Plantilla.
 java.lang.String getExpresionRegular()
          Retorna la ER apropiada para identificar dicha Plantilla.
static Plantilla valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Plantilla[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Desambiguacion

public static final Plantilla Desambiguacion
Method Detail

values

public static Plantilla[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Plantilla c : Plantilla.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Plantilla valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getExpresionRegular

public final java.lang.String getExpresionRegular()
Retorna la ER apropiada para identificar dicha Plantilla. Puede llegar a contemplar Sintaxis en idioma ingles

Returns:

comprobar

public final boolean comprobar(java.lang.String contenido)
Comprueba si el contenido de una Plantilla ( {{ contenido }} ) concuerda con dicha Plantilla.

Parameters:
cadena - contenido a se evaludado
Returns:
true en caso de tratarse de dicha plantilla

buscarPlantillaCorrespondiente

public static Plantilla buscarPlantillaCorrespondiente(java.lang.String contenido)
Encuentra la Plantilla correspondiente de acuerdo al Contenido dado. El contenido es lo que se encuentra delimtado por las "{{" "}}".
Ejemplo:
      {{contenido}}
 

Parameters:
contenido -
Returns:
la Plantilla correspondiente, o bien null en caso de no enconrarla