Package org.drools.common

Examples of org.drools.common.DisconnectedFactHandle


        }

        public Object unmarshal(HierarchicalStreamReader reader,
                                UnmarshallingContext context) {
            reader.moveDown();
            FactHandle factHandle = new DisconnectedFactHandle( reader.getValue() );
            reader.moveUp();

            List<Setter> setters = new ArrayList();
            while ( reader.hasMoreChildren() ) {
                reader.moveDown();
View Full Code Here


                        reader.moveDown();
                        String externalForm = reader.getValue();
                        reader.moveUp();

                        facts.put( identifier,
                                   new DisconnectedFactHandle( externalForm ) );
                    } else if ( reader.getNodeName().equals( "fact-handles" ) ) {
                        List list = new ArrayList();
                        String identifier = null;
                        while ( reader.hasMoreChildren() ) {
                            reader.moveDown();
                            identifier = reader.getValue();
                            reader.moveUp();
                            while ( reader.hasMoreChildren() ) {
                                reader.moveDown();
                                FactHandle factHandle = new DisconnectedFactHandle( (String) readItem( reader,
                                                                                                       context,
                                                                                                       null ) );
                                list.add( factHandle );
                                reader.moveUp();
                            }
View Full Code Here

                                       null );
                    reader.moveUp();
                }
                reader.moveUp();
            }
            return new RowItemContainer( new DisconnectedFactHandle( externalForm ),
                                         object );
        }
View Full Code Here

        }

        public Object unmarshal(HierarchicalStreamReader reader,
                                UnmarshallingContext unmarshallingContext) {
            reader.moveDown();
            DisconnectedFactHandle factHandle = new DisconnectedFactHandle( reader.getValue() );
            reader.moveUp();
            return factHandle;
        }
View Full Code Here

            String outIdentifier = null;
            while ( reader.hasMoreChildren() ) {
                reader.moveDown();
                String name = reader.getNodeName();
                if ( "fact-handle".equals( name ) ) {
                    factHandle = new DisconnectedFactHandle( reader.getValue() );
                } else if ( "out-identifier".equals( "out-identifier" ) ) {
                    outIdentifier = reader.getValue();
                }
                reader.moveUp();
            }
View Full Code Here

    return this.handle;
  }

  @XmlAttribute(name="fact-handle", required=true)
  public void setFactHandleFromString(String factHandleId) {
    handle = new DisconnectedFactHandle(factHandleId);
  }
View Full Code Here

        return this.handle;
    }
   
    @XmlAttribute(name="fact-handle", required=true)
  public void setFactHandleFromString(String factHandleId) {
    handle = new DisconnectedFactHandle(factHandleId);
  }
View Full Code Here

        this.outIdentifier = outIdentifier;
    }

    @XmlAttribute(name="fact-handle", required=true)
    public void setFactHandleFromString(String factHandleId) {
      factHandle = new DisconnectedFactHandle(factHandleId);
  }
View Full Code Here

            }
        }

        public Object unmarshal(HierarchicalStreamReader reader,
                                UnmarshallingContext context) {
            FactHandle factHandle = new DisconnectedFactHandle( reader.getAttribute( "factHandle" ) );

            List<Setter> setters = new ArrayList();
            while ( reader.hasMoreChildren() ) {
                reader.moveDown();
                Setter setter = CommandFactory.newSetter( reader.getAttribute( "accessor" ),
View Full Code Here

                                 cmd.getFactHandle().toExternalForm() );
        }

        public Object unmarshal(HierarchicalStreamReader reader,
                                UnmarshallingContext context) {
            FactHandle factHandle = new DisconnectedFactHandle( reader.getAttribute( "factHandle" ) );

            Command cmd = CommandFactory.newRetract( factHandle );

            return cmd;
        }
View Full Code Here

TOP

Related Classes of org.drools.common.DisconnectedFactHandle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.