Package net.sf.freecol.common.model
Class Specification.TypeReader<T extends FreeColSpecObjectType>
- java.lang.Object
-
- net.sf.freecol.common.model.Specification.TypeReader<T>
-
- All Implemented Interfaces:
Specification.ChildReader
- Enclosing class:
- Specification
private class Specification.TypeReader<T extends FreeColSpecObjectType> extends java.lang.Object implements Specification.ChildReader
A reader for ordinary spec object types.
-
-
Constructor Summary
Constructors Constructor Description TypeReader(java.lang.Class<T> type, java.util.List<T> listToFill)
Build a type read.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
readChildren(FreeColXMLReader xr)
-
-
-
Field Detail
-
type
private final java.lang.Class<T extends FreeColSpecObjectType> type
The class of objects to read.
-
result
private final java.util.List<T extends FreeColSpecObjectType> result
The list to append new objects to.
-
index
private int index
Internal index to impose an ordering.
-
-
Method Detail
-
readChildren
public void readChildren(FreeColXMLReader xr) throws javax.xml.stream.XMLStreamException
- Specified by:
readChildren
in interfaceSpecification.ChildReader
- Throws:
javax.xml.stream.XMLStreamException
-
-