@Override public Base addChild(String name) throws FHIRException { if (name.equals("variantType")) { this.variantType = new CodeableConcept(); return this.variantType; } else if (name.equals("exact")) { throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.exact"); } else if (name.equals("length")) { throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.length"); } else if (name.equals("outer")) { this.outer = new MolecularSequenceStructureVariantOuterComponent(); return this.outer; } else if (name.equals("inner")) { this.inner = new MolecularSequenceStructureVariantInnerComponent(); return this.inner; } else return super.addChild(name); }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("start")) { this.start = castToInteger(value); // IntegerType } else if (name.equals("end")) { this.end = castToInteger(value); // IntegerType } else return super.setProperty(name, value); return value; }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("variantType")) { this.variantType = new CodeableConcept(); return this.variantType; } else if (name.equals("exact")) { throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.exact"); } else if (name.equals("length")) { throw new FHIRException("Cannot call addChild on a primitive type MolecularSequence.length"); } else if (name.equals("outer")) { this.outer = new MolecularSequenceStructureVariantOuterComponent(); return this.outer; } else if (name.equals("inner")) { this.inner = new MolecularSequenceStructureVariantInnerComponent(); return this.inner; } else return super.addChild(name); }
public boolean hasOuter() { return this.outer != null && !this.outer.isEmpty(); }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("start")) { this.start = castToInteger(value); // IntegerType } else if (name.equals("end")) { this.end = castToInteger(value); // IntegerType } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 109757538: // start this.start = castToInteger(value); // IntegerType return value; case 100571: // end this.end = castToInteger(value); // IntegerType return value; default: return super.setProperty(hash, name, value); } }
@Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; if (!(other_ instanceof MolecularSequenceStructureVariantOuterComponent)) return false; MolecularSequenceStructureVariantOuterComponent o = (MolecularSequenceStructureVariantOuterComponent) other_; return compareValues(start, o.start, true) && compareValues(end, o.end, true); }
/** * @return {@link #outer} (Structural variant outer.) */ public MolecularSequenceStructureVariantOuterComponent getOuter() { if (this.outer == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MolecularSequenceStructureVariantComponent.outer"); else if (Configuration.doAutoCreate()) this.outer = new MolecularSequenceStructureVariantOuterComponent(); // cc return this.outer; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 109757538: return getStartElement(); case 100571: return getEndElement(); default: return super.makeProperty(hash, name); } }
public MolecularSequenceStructureVariantOuterComponent copy() { MolecularSequenceStructureVariantOuterComponent dst = new MolecularSequenceStructureVariantOuterComponent(); copyValues(dst); dst.start = start == null ? null : start.copy(); dst.end = end == null ? null : end.copy(); return dst; }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof MolecularSequenceStructureVariantOuterComponent)) return false; MolecularSequenceStructureVariantOuterComponent o = (MolecularSequenceStructureVariantOuterComponent) other_; return compareDeep(start, o.start, true) && compareDeep(end, o.end, true); }
public MolecularSequenceStructureVariantComponent copy() { MolecularSequenceStructureVariantComponent dst = new MolecularSequenceStructureVariantComponent(); copyValues(dst); dst.variantType = variantType == null ? null : variantType.copy(); dst.exact = exact == null ? null : exact.copy(); dst.length = length == null ? null : length.copy(); dst.outer = outer == null ? null : outer.copy(); dst.inner = inner == null ? null : inner.copy(); return dst; }
public boolean hasOuter() { return this.outer != null && !this.outer.isEmpty(); }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 109757538: // start this.start = castToInteger(value); // IntegerType return value; case 100571: // end this.end = castToInteger(value); // IntegerType return value; default: return super.setProperty(hash, name, value); } }
public MolecularSequenceStructureVariantComponent copy() { MolecularSequenceStructureVariantComponent dst = new MolecularSequenceStructureVariantComponent(); copyValues(dst); dst.variantType = variantType == null ? null : variantType.copy(); dst.exact = exact == null ? null : exact.copy(); dst.length = length == null ? null : length.copy(); dst.outer = outer == null ? null : outer.copy(); dst.inner = inner == null ? null : inner.copy(); return dst; }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof MolecularSequenceStructureVariantOuterComponent)) return false; MolecularSequenceStructureVariantOuterComponent o = (MolecularSequenceStructureVariantOuterComponent) other_; return compareDeep(start, o.start, true) && compareDeep(end, o.end, true); }
/** * @return {@link #outer} (Structural variant outer.) */ public MolecularSequenceStructureVariantOuterComponent getOuter() { if (this.outer == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MolecularSequenceStructureVariantComponent.outer"); else if (Configuration.doAutoCreate()) this.outer = new MolecularSequenceStructureVariantOuterComponent(); // cc return this.outer; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 109757538: return getStartElement(); case 100571: return getEndElement(); default: return super.makeProperty(hash, name); } }
@Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; if (!(other_ instanceof MolecularSequenceStructureVariantOuterComponent)) return false; MolecularSequenceStructureVariantOuterComponent o = (MolecularSequenceStructureVariantOuterComponent) other_; return compareValues(start, o.start, true) && compareValues(end, o.end, true); }
public MolecularSequenceStructureVariantOuterComponent copy() { MolecularSequenceStructureVariantOuterComponent dst = new MolecularSequenceStructureVariantOuterComponent(); copyValues(dst); dst.start = start == null ? null : start.copy(); dst.end = end == null ? null : end.copy(); return dst; }