Refine search
@Default(value = DefaultType.FIELD) static class User { @Attribute public String name; }
@Root(name = "retInutNFe") public class NFRetornoEventoInutilizacao extends DFBase { private static final long serialVersionUID = 4619432132223667789L; @Attribute(name = "versao", required = true) private String versao; @Element(name = "infInut", required = true) private NFRetornoEventoInutilizacaoDados dados; public NFRetornoEventoInutilizacaoDados getDados() { return this.dados; } public void setDados(final NFRetornoEventoInutilizacaoDados dados) { this.dados = dados; } public String getVersao() { return this.versao; } public void setVersao(final BigDecimal versao) { this.versao = BigDecimalParser.tamanho5Com2CasasDecimais(versao, "Versao"); } }
@Root(name = "testcase") public class TestCaseModel { @Attribute(required = true) public String classname; @Attribute(required = true) public String name; @Attribute(required = true) public double time; @ElementList(inline = true, entry = "failure", required = false, type = FailureModel.class) public List<FailureModel> failures = new ArrayList<>(); @ElementList(inline = true, entry = "error", required = false, type = FailureModel.class) public List<FailureModel> errors = new ArrayList<>(); @NotAnt(extensionSource = "maven") @Element(name = "skipped", required = false) public String skipped; }
@Root(name = "testsuite") public class Testsuite { @Attribute(name = "name") private String name; @Attribute(name = "time") private String time; @ElementList(inline = true) private List<Testcase> testcases = new ArrayList<>(); public Testsuite(Class<?> clazz, double time) { this.name = clazz.getName(); this.time = String.valueOf(time); } public List<Testcase> getTestcases() { return testcases; } public void setTestcases(List<Testcase> testcases) { this.testcases = testcases; } }
public class MDFeRetorno extends DFBase { private static final long serialVersionUID = -3320099037774115533L; @Attribute(name = "versao", required = false) private String versao; @Element(name = "infEvento") private MDFeInfoEventoRetorno eventoRetorno; public String getVersao() { return this.versao; } public void setVersao(final String versao) { this.versao = versao; } public MDFeInfoEventoRetorno getEventoRetorno() { return this.eventoRetorno; } public void setEventoRetorno(final MDFeInfoEventoRetorno eventoRetorno) { this.eventoRetorno = eventoRetorno; } }
public static class Command { @Attribute(required = false) public String headMountableId; @Attribute(required = true) public CommandType type; @ElementList(required = false, inline = true, entry = "text", data = true) public ArrayList<String> commands = new ArrayList<>(); public Command(String headMountableId, CommandType type, String text) { this.headMountableId = headMountableId; this.type = type; setCommand(text); } public void setCommand(String text) { this.commands.clear(); if (text != null) { text = text.trim(); text = text.replaceAll("\r", ""); String[] commands = text.split("\n"); this.commands.addAll(Arrays.asList(commands)); } } public String getCommand() { return Joiner.on('\n').join(commands); } private Command() { } }
/** * Constructor for the <code>AttributeLabel</code> object. This * is used to create a label that can convert from an object to an * XML attribute and vice versa. This requires the annotation and * contact extracted from the XML schema class. * * @param contact this is the field from the XML schema class * @param label represents the annotation for the field * @param format this is the format used to style the path */ public AttributeLabel(Contact contact, Attribute label, Format format) { this.detail = new Introspector(contact, this, format); this.decorator = new Qualifier(contact); this.required = label.required(); this.type = contact.getType(); this.empty = label.empty(); this.name = label.name(); this.format = format; this.label = label; }
/** * This returns the name of the parameter as taken from the XML * annotation. The name provided here is taken by the label * and used to compose a name consistent with how fields and * methods are named by the system. * * @return this returns the name of the annotated parameter */ public String getName() { return label.name(); } }
@Root(name = "retConsCad") public class NFRetornoConsultaCadastro extends DFBase { private static final long serialVersionUID = 3536099917870161262L; @Attribute(name = "versao") private String versao; @Element(name = "infCons") private NFRetornoConsultaCadastroDados dados; public NFRetornoConsultaCadastroDados getDados() { return this.dados; } public String getVersao() { return this.versao; } public void setDados(final NFRetornoConsultaCadastroDados dados) { this.dados = dados; } public void setVersao(final String versao) { this.versao = versao; } }
@Root(name = "testcase") public class TestCaseModel { @Attribute(required = true) public String classname; @Attribute(required = true) public String name; @Attribute(required = true) public double time; @ElementList(inline = true, entry = "failure", required = false, type = FailureModel.class) public List<FailureModel> failures = new ArrayList<>(); @ElementList(inline = true, entry = "error", required = false, type = FailureModel.class) public List<FailureModel> errors = new ArrayList<>(); @NotAnt(extensionSource = "maven") @Element(name = "skipped", required = false) public String skipped; }
@Root(name = "Part") public class Part implements IPart { @Attribute(name = "key", required = true) private String key; @Attribute(name = "file", required = false) private String filename; @Attribute(name = "container", required = false) private String container; @ElementList(inline = true, required = false, type = Stream.class) private List<IStream> streams;
public class CTeDetalhamentoEventoCancelamento extends DFBase { private static final long serialVersionUID = 8502078404626629549L; @Attribute(name = "versaoEvento", required = true) private String versaoEvento; @Element(name = "evCancCTe", required = true) private CTeEnviaEventoCancelamento eventoCancelamento; public void setVersaoEvento(final BigDecimal versaoEvento) { this.versaoEvento = BigDecimalParser.tamanho5Com2CasasDecimais(versaoEvento, "Versao do Evento"); } public String getVersaoEvento() { return this.versaoEvento; } public CTeEnviaEventoCancelamento getEventoCancelamento() { return this.eventoCancelamento; } public void setEventoCancelamento(final CTeEnviaEventoCancelamento eventoCancelamento) { this.eventoCancelamento = eventoCancelamento; } }
public abstract class AbstractNozzle extends AbstractModelObject implements Nozzle { @ElementList(required = false) protected IdentifiableList<NozzleTip> nozzleTips = new IdentifiableList<>(); @Attribute protected String id; @Attribute(required = false) protected String name;
/** * Constructor for the <code>AttributeLabel</code> object. This * is used to create a label that can convert from an object to an * XML attribute and vice versa. This requires the annotation and * contact extracted from the XML schema class. * * @param contact this is the field from the XML schema class * @param label represents the annotation for the field * @param format this is the format used to style the path */ public AttributeLabel(Contact contact, Attribute label, Format format) { this.detail = new Introspector(contact, this, format); this.decorator = new Qualifier(contact); this.required = label.required(); this.type = contact.getType(); this.empty = label.empty(); this.name = label.name(); this.format = format; this.label = label; }
/** * This returns the name of the parameter as taken from the XML * annotation. The name provided here is taken by the label * and used to compose a name consistent with how fields and * methods are named by the system. * * @return this returns the name of the annotated parameter */ public String getName() { return label.name(); } }
@Root(name = "retCancNFe") public class NFRetornoCancelamento extends DFBase { private static final long serialVersionUID = 93128697872980852L; @Attribute(name = "versao", required = false) private String versao; @Element(name = "infCanc") private NFRetornoInfoCancelamento infoCancelamento; public NFRetornoInfoCancelamento getInfoCancelamento() { return this.infoCancelamento; } public void setInfoCancelamento(final NFRetornoInfoCancelamento infoCancelamento) { this.infoCancelamento = infoCancelamento; } public String getVersao() { return this.versao; } public void setVersao(final String versao) { this.versao = versao; } }