Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
e8e522b
ok
IgorAvilaPereira Jul 21, 2024
ca6f8e5
Delete .idea directory
IgorAvilaPereira Jul 21, 2024
a22f27e
ok
IgorAvilaPereira Jul 22, 2024
fac05e6
ok
IgorAvilaPereira Jul 22, 2024
a7a92d8
ok
IgorAvilaPereira Jul 22, 2024
86712db
ok
IgorAvilaPereira Jul 22, 2024
d863213
ok
IgorAvilaPereira Jul 22, 2024
db6e358
ok
IgorAvilaPereira Jul 22, 2024
b0da261
ok
IgorAvilaPereira Jul 22, 2024
742c2d5
ok
IgorAvilaPereira Jul 22, 2024
2e5b789
ok
IgorAvilaPereira Jul 22, 2024
c6cbf51
ok
IgorAvilaPereira Jul 22, 2024
6c759e3
ok
IgorAvilaPereira Jul 22, 2024
bcefcf6
ok
IgorAvilaPereira Jul 22, 2024
0f3f90e
Update README.md
IgorAvilaPereira Jul 22, 2024
601162c
ok
IgorAvilaPereira Jul 23, 2024
c8a2fe8
ok
IgorAvilaPereira Jul 23, 2024
39cab69
ok
IgorAvilaPereira Jul 23, 2024
36de503
ok
IgorAvilaPereira Jul 24, 2024
2b74fcc
ok
IgorAvilaPereira Jul 24, 2024
26781ff
ok
IgorAvilaPereira Jul 24, 2024
f2eebd6
ok
IgorAvilaPereira Jul 24, 2024
624bb53
ok
IgorAvilaPereira Jul 24, 2024
9f529fc
ok
IgorAvilaPereira Jul 24, 2024
4c2b741
ok
IgorAvilaPereira Jul 24, 2024
f2a10b3
a
IgorAvilaPereira Jul 24, 2024
ce6f618
a
IgorAvilaPereira Jul 24, 2024
bb755d0
Delete relatorios salvos/adsfsdfdsfasdfasdfsadfdsa.pdf
IgorAvilaPereira Jul 24, 2024
6ba53e2
Delete relatorios salvos/asdasd.pdf
IgorAvilaPereira Jul 24, 2024
52ef9f1
Delete relatorios salvos/dsfsdf.pdf
IgorAvilaPereira Jul 24, 2024
abd4b51
Delete relatorios salvos/fdgdfg.pdf
IgorAvilaPereira Jul 24, 2024
4bf2357
Delete relatorios salvos/ok.pdf
IgorAvilaPereira Jul 24, 2024
48c3b94
Delete relatorios salvos/sdfsdfsdf.pdf
IgorAvilaPereira Jul 24, 2024
0565156
Delete relatorios salvos/sdfsdfsdfsadfsadfsda.pdf
IgorAvilaPereira Jul 24, 2024
cf92276
Delete relatorios salvos/teste.pdf
IgorAvilaPereira Jul 24, 2024
cf14050
Update .gitignore
IgorAvilaPereira Jul 24, 2024
d4c789b
ok
IgorAvilaPereira Jul 24, 2024
8f46924
ok
IgorAvilaPereira Jul 24, 2024
8dfde3e
a
IgorAvilaPereira Jul 24, 2024
1c94d88
a
IgorAvilaPereira Jul 24, 2024
06c4df6
a
IgorAvilaPereira Jul 24, 2024
fb73352
a
IgorAvilaPereira Jul 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Compiled class file
*.class

# pdf files
*.pdf

# Log file
*.log

Expand Down
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

16 changes: 0 additions & 16 deletions .idea/compiler.xml

This file was deleted.

20 changes: 0 additions & 20 deletions .idea/jarRepositories.xml

This file was deleted.

13 changes: 0 additions & 13 deletions .idea/libraries/Maven__com_itextpdf_itextpdf_5_5_10.xml

This file was deleted.

68 changes: 0 additions & 68 deletions .idea/libraries/groovy_4_0_0_rc_2.xml

This file was deleted.

13 changes: 0 additions & 13 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

4 changes: 2 additions & 2 deletions ProducoesCientificas.iml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_17">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_21">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
Expand All @@ -12,6 +12,6 @@
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="groovy-4.0.0-rc-2" level="project" />
<orderEntry type="library" name="Maven: com.itextpdf:itextpdf:5.5.10" level="project" />
<orderEntry type="library" name="Maven: com.itextpdf:itextpdf:5.5.13.4" level="project" />
</component>
</module>
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# LATTES REPORT

# Projeto de Análise de Dados Lattes

Um projeto desenvolvido em Java para análise de dados provenientes da Plataforma Lattes. Ele recebe como entrada um arquivo .xml que representa um perfil de currículo Lattes e permite a geração de relatórios com base nessas informações.
Expand Down Expand Up @@ -48,7 +49,8 @@ Contribuições são bem-vindas! Sinta-se à vontade para enviar pull requests c

- [Daniel dos Santos](https://github.com/dsantosr)
- [Welderson Bruce](https://github.com/brvcelose)
- [Igor Avila Pereira](https://github.com/IgorAvilaPereira)

## Licença

Este projeto está licenciado sob a [MIT](https://opensource.org/license/mit).
Este projeto está licenciado sob a [MIT](https://opensource.org/license/mit).
1 change: 1 addition & 0 deletions files/Igor Avila Pereira.xml

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
<version>1.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itextpdf</artifactId>
<version>5.5.10</version>
<version>5.5.13.4</version>
</dependency>

</dependencies>
Expand Down
Binary file removed relatorios salvos/example.pdf
Binary file not shown.
Binary file added relatorios salvos/igor.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/java/entidades/ArtigoPublicado.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public ArtigoPublicado(ArrayList<String> autores, String titulo, String ano) {

@Override
public String getTipo() {
return "Artigo Publicado; ";
return "Artigo Publicado: ";
}

@Override
Expand Down
56 changes: 56 additions & 0 deletions src/main/java/entidades/AtuacaoProfissional.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
package entidades;

public class AtuacaoProfissional {
private String nomeInstituicao;
private String vinculo;
private String mesInicio;
private String anoInicio;
private String mesFim;
private String anoFim;

public String getNomeInstituicao() {
return nomeInstituicao;
}
public void setNomeInstituicao(String nomeInstituicao) {
this.nomeInstituicao = nomeInstituicao;
}
public String getVinculo() {
return vinculo;
}
public void setVinculo(String vinculo) {
this.vinculo = vinculo;
}
public String getMesInicio() {
return mesInicio;
}
public void setMesInicio(String mesInicio) {
this.mesInicio = mesInicio;
}
public String getAnoInicio() {
return anoInicio;
}
public void setAnoInicio(String anoInicio) {
this.anoInicio = anoInicio;
}
public String getMesFim() {
return mesFim;
}
public void setMesFim(String mesFim) {
this.mesFim = mesFim;
}
public String getAnoFim() {
return anoFim;
}
public void setAnoFim(String anoFim) {
this.anoFim = anoFim;
}
@Override
public String toString() {
return nomeInstituicao + "\n" + vinculo + "\nMês de Início: "
+ mesInicio + " Ano de Início: " + anoInicio + "\nMês de Fim: " + mesFim + " Ano de Fim: " + anoFim + "\n"; }





}
111 changes: 111 additions & 0 deletions src/main/java/entidades/AtuacoesProfissionais.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
package entidades;

import java.util.ArrayList;

import org.w3c.dom.Document;
import org.w3c.dom.NodeList;

public class AtuacoesProfissionais {
private ArrayList<AtuacaoProfissional> vetAtuacaoProfissional;

public AtuacoesProfissionais() {
this.vetAtuacaoProfissional = new ArrayList<>();
}

public AtuacoesProfissionais(Document doc) {
this();
NodeList nodeListAtuacao = doc.getElementsByTagName("ATUACAO-PROFISSIONAL");
for (int i = 0; i < nodeListAtuacao.getLength(); i++) {
NodeList nodeList = doc.getElementsByTagName("VINCULOS");
for (int j = 0; j < nodeList.getLength(); j++) {
try {
AtuacaoProfissional atuacaoProfissional = new AtuacaoProfissional();
atuacaoProfissional.setNomeInstituicao(nodeListAtuacao.item(i).getAttributes().getNamedItem("NOME-INSTITUICAO").getTextContent());
atuacaoProfissional.setVinculo(nodeList.item(j).getAttributes()
.getNamedItem("OUTRO-ENQUADRAMENTO-FUNCIONAL-INFORMADO").getTextContent() + ". "
+ nodeList.item(j).getAttributes().getNamedItem("OUTRAS-INFORMACOES").getTextContent());
atuacaoProfissional.setMesInicio(nodeList.item(j).getAttributes()
.getNamedItem("MES-INICIO").getTextContent());
atuacaoProfissional.setAnoInicio(nodeList.item(j).getAttributes()
.getNamedItem("ANO-INICIO").getTextContent());
atuacaoProfissional.setMesFim(nodeList.item(j).getAttributes()
.getNamedItem("MES-FIM").getTextContent());
atuacaoProfissional.setAnoFim(nodeList.item(j).getAttributes()
.getNamedItem("ANO-FIM").getTextContent());
this.vetAtuacaoProfissional.add(atuacaoProfissional);
} catch (Exception e) {
}
}
}

// NodeList nodeList =
// doc.getElementsByTagName("ENSINO-FUNDAMENTAL-PRIMEIRO-GRAU");
// try {
// this.ensinoFundamental =
// nodeList.item(0).getAttributes().getNamedItem("NOME-INSTITUICAO").getTextContent();
// } catch (Exception e) {
// }

// nodeList = doc.getElementsByTagName("ENSINO-MEDIO-SEGUNDO-GRAU");
// try {
// this.ensinoMedio =
// nodeList.item(0).getAttributes().getNamedItem("NOME-INSTITUICAO").getTextContent();
// } catch (Exception e) {
// }

// nodeList = doc.getElementsByTagName("CURSO-TECNICO-PROFISSIONALIZANTE");
// for (int i = 0; i < nodeList.getLength(); i++) {
// try {
// vetTecnico.add(((nodeList.item(i).getAttributes().getNamedItem("NOME-CURSO").getTextContent()
// == null ||
// nodeList.item(i).getAttributes().getNamedItem("NOME-CURSO").getTextContent().isBlank()
// ||
// nodeList.item(i).getAttributes().getNamedItem("NOME-CURSO").getTextContent().isEmpty())
// ?
// nodeList.item(i).getAttributes().getNamedItem("NOME-INSTITUICAO").getTextContent()
// :
// nodeList.item(i).getAttributes().getNamedItem("NOME-CURSO").getTextContent()));
// } catch (Exception e) {
// }
// }
// nodeList = doc.getElementsByTagName("GRADUACAO");
// for (int i = 0; i < nodeList.getLength(); i++) {
// try {
// vetGraduacao.add(nodeList.item(i).getAttributes().getNamedItem("NOME-CURSO").getTextContent());
// } catch (Exception e) {
// }
// }
// nodeList = doc.getElementsByTagName("MESTRADO");
// for (int i = 0; i < nodeList.getLength(); i++) {
// try {
// vetMestrado.add(nodeList.item(i).getAttributes().getNamedItem("NOME-CURSO").getTextContent());
// } catch (Exception e) {
// }
// }
// nodeList = doc.getElementsByTagName("DOUTORADO");
// for (int i = 0; i < nodeList.getLength(); i++) {
// try {
// vetDoutorado.add(nodeList.item(i).getAttributes().getNamedItem("NOME-CURSO").getTextContent());
// } catch (Exception e) {
// }
// }
}

public ArrayList<AtuacaoProfissional> getVetAtuacaoProfissional() {
return vetAtuacaoProfissional;
}

public void setVetAtuacaoProfissional(ArrayList<AtuacaoProfissional> vetAtuacaoProfissional) {
this.vetAtuacaoProfissional = vetAtuacaoProfissional;
}

@Override
public String toString() {
String resultado = "";
for (AtuacaoProfissional atuacaoProfissional : this.vetAtuacaoProfissional) {
resultado += atuacaoProfissional.toString()+"\n\n";
}
return resultado;
}

}
Loading