Examples of accept()


Examples of de.fu_berlin.inf.dpp.net.IncomingTransferObject.accept()

                ConnectionTestResponse result = new ConnectionTestResponse();
                result.transferMode = ito.getTransferMode();

                try {
                    byte[] data = ito.accept(SubMonitor
                        .convert(new NullProgressMonitor()));

                    result.dataHash = Arrays.hashCode(data);

                    log.info(Utils.prefix(new JID(packet.getFrom()))
View Full Code Here

Examples of de.tfh.pdvl.hp.protocol.Message.accept()

  public void visit(QueryMessage m) throws WebAppException {
      ClientConnection conn = connectToServer();
      conn.write(m.toString());
    try {
            Message retMessage = parser.parse(conn.read());
            retMessage.accept(this);
        } catch (MessageParserException e) {
            throw new WebAppException("Invalid message", e);
        } catch (IOException e) {
            throw new WebAppException("Connection to serialServer failed", e);
        } catch (ParentException e) {
View Full Code Here

Examples of de.tfh.pdvl.hp.protocol.QueryMessage.accept()

   * @return returns a HpData object or null in case of errors.
   */
  public HpData fetchHpData() {
      QueryMessage message = new QueryMessage();
      try {
            message.accept(visitor);
        } catch (ParentException e) {
            error = e.getMessage();
            editError = e.getMessage();
            hpData = null;
        }
View Full Code Here

Examples of de.tfh.pdvl.hp.protocol.SetMessage.accept()

    setM.setFrequency(aData.getFrequence());
    setM.setOffset(aData.getOffset());
    setM.setWaveShape(aData.getWaveShape());
   
    try {
        setM.accept(visitor);
    } catch (ParentException e) {
            editError = e.getMessage();
        }
  }
 
View Full Code Here

Examples of devplugin.ProgramFilter.accept()

   
    if(mFilterName != null) {
      ProgramFilter filter = getFilter();
     
      if(filter != null) {
        filterExclusion = filter.accept(prog);
      }
      else {
        filterExclusion = true;
      }
    }
View Full Code Here

Examples of devplugin.beanshell.BeanShellProgramFilterIf.accept()

    boolean error = false;
    try {
      BeanShellProgramFilterIf filter;
      filter = (BeanShellProgramFilterIf) new Interpreter().eval(mScriptEditor
          .getText());
      filter.accept(Plugin.getPluginManager().getExampleProgram());
    } catch (Exception e) {
      ErrorHandler.handle(mLocalizer.msg("errorParsing",
          "Error while parsing Script"), e);
      error = true;
    }
View Full Code Here

Examples of diva.canvas.interactor.Interactor.accept()

            // Find what interactor will grab the event.
            for (Iterator i = _interactors.iterator(); i.hasNext();) {
                Interactor interactor = (Interactor) i.next();

                if (interactor.accept(event)) {
                    _currentInteractor = interactor;
                    _currentInteractor.mousePressed(event);
                    break;
                }
            }
View Full Code Here

Examples of dovetaildb.dbrepository.RequestAcceptor.accept()

  protected Object handle(String url, boolean insertOrUpdate, HttpServletRequest request, HttpServletResponse response) {
    ParsedRequest req = new ParsedRequest(url, insertOrUpdate, request, response);
    if (req.db == null) req.db = "_metadata";
    RequestAcceptor acceptor = repo.getRequestAcceptor("_metadata");
    if (! acceptor.accept(req) ) {
      throw new ApiException("PermissionDenied","Permission denied");
//      if (! req.response.isCommitted()) {
//        try {
//          req.response.sendError(HttpServletResponse.SC_FORBIDDEN);
//          return;
View Full Code Here

Examples of dtool.ast.definitions.Module.accept()

  @Override
  public void computeFoldableBlocks(IFoldingContent content) {
    Module deeModule = EditorUtil.getParsedModule_NoWaitInUI(content);
   
    if (deeModule != null) {
      deeModule.accept(new ASTVisitor() {
       
        @Override
        public boolean preVisit(ASTNode node) {
          switch (node.getNodeType()) {
          case DEFINITION_STRUCT:
View Full Code Here

Examples of edu.stanford.nlp.io.NumberRangesFileFilter.accept()

      if(!fileName.startsWith(pre))
        return false;
    }
    if(filters.containsKey(FilterType.isInRange)) {
      NumberRangesFileFilter f = new NumberRangesFileFilter(filters.get(FilterType.isInRange), false);
      if(!f.accept(fileName))
        return false;
    }
    return true;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.