public class IntegerParameterFactory extends SimpleParameterParser<IntegerParameter> implements IntegerStructureAttributes
Carrega um IntegerParameter.
O elemento corrente do analisador de XML precisa ser um
elemento IntegerParameter.
| Modifier and Type | Field and Description |
|---|---|
static String |
INTEGER_PARAMETER_ELEMENT
O elemento "inteiro": descreve as propriedades de
um
parâmetro do tipo inteiro. |
INTEGER_ELEMENT_MAXIMUM_ATTRIBUTE, INTEGER_ELEMENT_MINIMUM_ATTRIBUTE| Constructor and Description |
|---|
IntegerParameterFactory() |
| Modifier and Type | Method and Description |
|---|---|
IntegerParameter |
createSimpleParameter(XmlParser parser,
ParsedSimpleParameter definition,
ParameterGroup group,
SimpleAlgorithmConfigurator configurator)
Cria uma instância do parâmetro de tipo
<T>, a partir dos atributos
básicos do parâmetro. |
ParameterStructure<IntegerParameter> |
getParameterStructure()
Obtém a estrutura do parâmetro.
|
createParameter, getParameterStructuresclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIntegerStructurepublic static final String INTEGER_PARAMETER_ELEMENT
O elemento "inteiro": descreve as propriedades de
um parâmetro do tipo inteiro.
É filho do elemento ParameterGroup.
public IntegerParameter createSimpleParameter(XmlParser parser, ParsedSimpleParameter definition, ParameterGroup group, SimpleAlgorithmConfigurator configurator) throws ParseException
<T>, a partir dos atributos
básicos do parâmetro. As subclasses devem implementar esse método, fazendo
a extração dos demais atributos do parâmetro.createSimpleParameter in class SimpleParameterParser<IntegerParameter>parser - Parser xml do configurador.definition - definição do parâmetro.group - grupo do parâmetro.configurator - Configurador de algoritmo.ParseException - Caso não seja possível criar a instância do
parâmetro com os atributos especificados.public ParameterStructure<IntegerParameter> getParameterStructure()
getParameterStructure in class SimpleParameterParser<IntegerParameter>Copyright © 2019. All rights reserved.