/** * Builder initialized from an existing object. * * @param expected the existing object * @param df data factory */ public BuilderAnnotationAssertion(OWLAnnotationAssertionAxiom expected, OWLDataFactory df) { this(df); withAnnotations(expected.annotations()).withSubject(expected.getSubject()) .withProperty(expected.getProperty()) .withValue(expected.getValue()); }
@Override public OWLAnnotationAssertionAxiom buildObject() { return df.getOWLAnnotationAssertionAxiom(getProperty(), getSubject(), getValue(), annotations); }
public <T extends OWLAnnotationSubject & OWLAnnotationValue> void internalSet(T h) { if (builder.getSubject() == null) { builder.withSubject(h); } else { builder.withValue(h); } }
@Override void handleChild(AnnEH h) { if (builder.getSubject() == null) { super.handleChild(h); } else { OWLAnnotation o = h.getOWLObject(); builder.withProperty(o.getProperty()).withValue(o.getValue()); } } }
@Override void handleChild(IndividualEH h) { builder.withSubject(h.getOWLObject(OWLAnonymousIndividual.class)); }
@Override void handleChild(LiteralEH h) { builder.withValue(h.getOWLObject()); } }
@Override public OWLAnnotationAssertionAxiom buildObject() { return df.getOWLAnnotationAssertionAxiom(getProperty(), verifyNotNull(subject), verifyNotNull(value), annotations); }
@Override void handleChild(AnnEH h) { if (builder.getSubject() == null) { super.handleChild(h); } else { OWLAnnotation o = h.getOWLObject(); builder.withProperty(o.getProperty()).withValue(o.getValue()); } } }
public <T extends OWLAnnotationSubject & OWLAnnotationValue> void internalSet(T h) { if (builder.getSubject() == null) { builder.withSubject(h); } else { builder.withValue(h); } }
@Override void handleChild(IndividualEH h) { builder.withSubject(h.getOWLObject(OWLAnonymousIndividual.class)); }
@Override void handleChild(LiteralEH h) { builder.withValue(h.getOWLObject()); } }
@Override public OWLAnnotationAssertionAxiom buildObject() { return df.getOWLAnnotationAssertionAxiom(getProperty(), verifyNotNull(subject), verifyNotNull(value), annotations); }
/** * Builder initialized from an existing object. * * @param expected the existing object * @param df data factory */ public BuilderAnnotationAssertion(OWLAnnotationAssertionAxiom expected, OWLDataFactory df) { this(df); withAnnotations(expected.annotations()).withSubject(expected.getSubject()) .withProperty(expected.getProperty()) .withValue(expected.getValue()); }
@Override void handleChild(AnnEH h) { if (builder.getSubject() == null) { super.handleChild(h); } else { OWLAnnotation o = h.getOWLObject(); builder.withProperty(o.getProperty()).withValue(o.getValue()); } } }
public <T extends OWLAnnotationSubject & OWLAnnotationValue> void internalSet(T h) { if (builder.getSubject() == null) { builder.withSubject(h); } else { builder.withValue(h); } }
@Override void handleChild(IndividualEH h) { builder.withSubject(h.getOWLObject(OWLAnonymousIndividual.class)); }
@Override void handleChild(LiteralEH h) { builder.withValue(h.getOWLObject()); } }
@Override public OWLAnnotationAssertionAxiom buildObject() { return df.getOWLAnnotationAssertionAxiom(getProperty(), verifyNotNull(subject), verifyNotNull(value), annotations); }
/** * Builder initialized from an existing object. * * @param expected the existing object * @param df data factory */ public BuilderAnnotationAssertion(OWLAnnotationAssertionAxiom expected, OWLDataFactory df) { this(df); withAnnotations(expected.annotations()).withSubject(expected.getSubject()) .withProperty(expected.getProperty()) .withValue(expected.getValue()); }
@Override void handleChild(AnnEH h) { if (builder.getSubject() == null) { super.handleChild(h); } else { OWLAnnotation o = h.getOWLObject(); builder.withProperty(o.getProperty()).withValue(o.getValue()); } } }