2 package net.sf.openrocket.preset.xml;
6 import javax.xml.bind.annotation.XmlAccessType;
7 import javax.xml.bind.annotation.XmlAccessorType;
8 import javax.xml.bind.annotation.XmlRootElement;
10 import net.sf.openrocket.preset.ComponentPreset;
11 import net.sf.openrocket.preset.InvalidComponentPresetException;
14 * Centering Ring preset XML handler.
16 @XmlRootElement(name = "CenteringRing")
17 @XmlAccessorType(XmlAccessType.FIELD)
18 public class CenteringRingDTO extends BodyTubeDTO {
21 * Default constructor.
23 public CenteringRingDTO() {
27 * Most-useful constructor that maps a TubeCoupler preset to a TubeCouplerDTO.
29 * @param thePreset the preset
31 * @throws net.sf.openrocket.util.BugException thrown if the expected tube coupler keys are not in the preset
33 public CenteringRingDTO(ComponentPreset thePreset) {
38 public ComponentPreset asComponentPreset(List<MaterialDTO> materials) throws InvalidComponentPresetException {
39 return super.asComponentPreset(ComponentPreset.Type.CENTERING_RING, materials);