Attensadev / j-calais

Automatically exported from code.google.com/p/j-calais
Apache License 2.0
0 stars 0 forks source link

Add method to retrieve field names #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add a method to retrieve CalaisObject field names

Original issue reported on code.google.com by elmer.garduno@gmail.com on 19 Jul 2011 at 10:40

GoogleCodeExporter commented 9 years ago
 The new method can be used in the following way:

private void print(CalaisObject object) {
    System.out.printf(">> %s\n", object.getField("_typeGroup"));
    for (String field : object.getFieldNames()) {
      System.out.printf("\t- %s: %s\n", field,  object.getField(field));      
    }  
  }

Original comment by elmer.garduno@gmail.com on 19 Jul 2011 at 10:42

GoogleCodeExporter commented 9 years ago
To test this enhancement please use the following artifacts

 <repositories>
    <repository>
      <id>sonatype-snapshots</id>
      <url>http://oss.sonatype.org/content/repositories/snapshots</url>
    </repository>
  </repositories>

    <dependency>
      <groupId>mx.bigdata.jcalais</groupId>
      <artifactId>j-calais</artifactId>
      <version>0.3-SNAPSHOT</version>
    </dependency>

Or this jar:

http://code.google.com/p/j-calais/downloads/detail?name=j-calais-0.3-SNAPSHOT.ja
r

Original comment by elmer.garduno@gmail.com on 19 Jul 2011 at 10:47

GoogleCodeExporter commented 9 years ago

Original comment by elmer.garduno@gmail.com on 29 Jul 2011 at 10:53