Coder Social home page Coder Social logo

introde-2017-assignment-1's Introduction

introde-2017-assignment-1

Giovanni Rafael Vuolo [email protected]

The code is structure in two packages inside the src folder: model (where there are the People and Activity classes) and people (all the others). Outside the src folder there are the people.xml (with 20 persons), the people.xsd, the ivy.xml and the build.xml.

In XPathPeople.java there is the function for printing the list of the person from the people.xml (getPeople()), the function for getting the preferred activity of a person (getActivityPreference(Integer)), the function for getting the person with a specific startdate (get.ActivitybyStartdate(Date, String)) and finally getActivityDescription(Integer) and getActivityPlace(Integer) which do as the name says. JAXBMarsh.class does the marshalling creating NewPeople.xml JAXBUnmarsh.class does the unmarshalling of people.xml PeopleJSON.class does the JSON transformation

In order to excecute the application from forking it to run it, follow this steps:

Now you can compile/run it with:

  • $ cd introde-2017-assignment-1

  • $ ant execute.evaluation this will run XPathPeople.class, JAXBMarsh.class, JAXBUnmarsh.class and PeopleJSON.class it will show every output from the excecuted classes on console and will create NewPeople.xml (output of the marshalling) and people.json (output from the JSON transformation)

Another way to run it is using Eclipse (given that you have Ivy installed):

  • open project in Eclipse
  • right-click on ivy.xml -> "Add Ivy Library"
  • refresh the project
  • right-click build.xml -> Run as -> 2 Ant Build
  • compile command should be default select also execute.evaluation (the order of execution should be compile, execute.evaluation) -> "Run"

introde-2017-assignment-1's People

Contributors

chany93 avatar

Watchers

 avatar

Forkers

chinidamiano

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.