|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Plantilla> jwikidump.entidad.mapeos.Plantilla
public 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 |
---|
public static final Plantilla Desambiguacion
Method Detail |
---|
public static Plantilla[] values()
for (Plantilla c : Plantilla.values()) System.out.println(c);
public static Plantilla valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic final java.lang.String getExpresionRegular()
public final boolean comprobar(java.lang.String contenido)
cadena
- contenido a se evaludado
public static Plantilla buscarPlantillaCorrespondiente(java.lang.String contenido)
{{contenido}}
contenido
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |