示例#1
0
  public TagReader<T> mappingPCDataTo(XmlReader aMapper) {
    if (mappers == null) {
      mappers = new ArrayList<XmlReader>();
    }
    mappers.add(aMapper);

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

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

    return this;
  }
 public void addHobbit(Hobbit aHobbit) {
   hobbits.add(aHobbit);
 }