Grammar for Atoms: "a1" elementType="O" hydrogenCount="1"> id is of class AtomID which only contains a String. It does no processing on the String, so any String object is valid. elementType is of class ElementType and is structured identically to AtomID. hydrogenCount is of class HydrogenCount, and is also structured identically to AtomID and ElementType.