/** * Builder initialized from an existing object. * * @param expected the existing object * @param df data factory */ public BuilderPropertyChain(OWLSubPropertyChainOfAxiom expected, OWLDataFactory df) { this(df); withPropertiesInChain(expected.getPropertyChain()).withProperty(expected.getSuperProperty()) .withAnnotations( expected.annotations()); }
/** * Builder initialized from an existing object. * * @param expected the existing object * @param df data factory */ public BuilderPropertyChain(OWLSubPropertyChainOfAxiom expected, OWLDataFactory df) { this(df); withPropertiesInChain(expected.getPropertyChain()).withProperty(expected.getSuperProperty()) .withAnnotations( expected.annotations()); }
/** * Builder initialized from an existing object. * * @param expected the existing object * @param df data factory */ public BuilderPropertyChain(OWLSubPropertyChainOfAxiom expected, OWLDataFactory df) { this(df); withPropertiesInChain(expected.getPropertyChain()).withProperty(expected.getSuperProperty()) .withAnnotations( expected.annotations()); }
/** * Builder initialized from an existing object. * * @param expected * the existing object * @param df * data factory */ public BuilderPropertyChain(OWLSubPropertyChainOfAxiom expected, OWLDataFactory df) { this(df); withPropertiesInChain(expected.getPropertyChain()).withProperty(expected.getSuperProperty()) .withAnnotations(expected.annotations()); }
@Override void handleChild(ObjectPropertyEH h) { OWLObjectPropertyExpression prop = h.getOWLObject(); if (builder.getSub() == null && verifyNotNull(chain).chainSize() == 0) { builder.withSub(prop); } else if (builder.getSup() == null) { builder.withSup(prop); verifyNotNull(chain).withProperty(prop); } else { ensureNotNull(null, "Expected two object property expression elements"); } }
@Override void handleChild(ObjectPropertyEH h) { OWLObjectPropertyExpression prop = h.getOWLObject(); if (builder.getSub() == null && verifyNotNull(chain).chainSize() == 0) { builder.withSub(prop); } else if (builder.getSup() == null) { builder.withSup(prop); verifyNotNull(chain).withProperty(prop); } else { ensureNotNull(null, "Expected two object property expression elements"); } }
@Override void handleChild(ObjectPropertyEH h) { OWLObjectPropertyExpression prop = h.getOWLObject(); if (builder.getSub() == null && verifyNotNull(chain).chainSize() == 0) { builder.withSub(prop); } else if (builder.getSup() == null) { builder.withSup(prop); verifyNotNull(chain).withProperty(prop); } else { ensureNotNull(null, "Expected two object property expression elements"); } }
@Override void handleChild(ObjectPropertyEH h) { OWLObjectPropertyExpression prop = h.getOWLObject(); if (builder.getSub() == null && verifyNotNull(chain).chainSize() == 0) { builder.withSub(prop); } else if (builder.getSup() == null) { builder.withSup(prop); verifyNotNull(chain).withProperty(prop); } else { ensureNotNull(null, "Expected two object property expression elements"); } }