예제 #1
0
  public TagReader<T> with(ContentReader... aMappers) {
    if (mappers == null) {
      mappers = new ArrayList<XmlReader>();
    }
    mappers.addAll(0, Arrays.asList(aMappers));

    return this;
  }
예제 #2
0
  public TagReader<T> mappingPCDataTo(XmlReader aMapper) {
    if (mappers == null) {
      mappers = new ArrayList<XmlReader>();
    }
    mappers.add(aMapper);

    return this;
  }
예제 #3
0
  public TagReader<T> withPCDataMappedTo(final String aFieldName) {
    if (mappers == null) {
      mappers = new ArrayList<XmlReader>();
    }

    mappers.add(new PCDataReader<T>(aFieldName));

    return this;
  }
 public Hobbit get(int anIndex) {
   return hobbits.get(anIndex);
 }
 public int size() {
   return hobbits.size();
 }
 public void addHobbit(Hobbit aHobbit) {
   hobbits.add(aHobbit);
 }