コード例 #1
0
 public SNode createChildNode(Object parameterObject, SModel model, String pattern) {
   SNode conceptDeclaration = getOutputConcept();
   if (conceptDeclaration == null) {
     throw new RuntimeException(
         "Couldn't create child node. Concept declaration was not specified. Parameter object: "
             + getParameterObject());
   }
   return NodeFactoryManager.createNode(conceptDeclaration, myOldChild, getSourceNode(), model);
 }
コード例 #2
0
 public SNode createChildNode(Object parameterObject, SModel model, String pattern) {
   SNode childNode =
       SModelUtil_new.instantiateConceptDeclaration(
           NameUtil.nodeFQName(mySmartConcept), model, GlobalScope.getInstance());
   String referentRole = SModelUtil.getGenuineLinkRole(mySmartReference);
   childNode.setReferenceTarget(referentRole, myReferentNode);
   NodeFactoryManager.setupNode(
       mySmartConcept, childNode, myCurrentChild, myParentNode, model, getScope());
   return childNode;
 }