Examples of valid()


Examples of com.arjuna.ats.arjuna.common.Uid.valid()

      throws InvalidParticipantException, WrongStateException,
      SystemException
  {
    Uid participant = new Uid(id);

    if (!participant.valid())
      throw new InvalidParticipantException(
          wscfLogger.log_mesg.getString("com.arjuna.mwlabs.wscf.model.as.coordinator.arjunacore.ACCoordinator_2")
              + id);

    synchronized (this)
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState.valid()

/* 1295 */           current = null;
/*      */         }
/*      */
/* 1298 */         if (unloadOk)
/*      */         {
/* 1302 */           if ((S.valid()) && (this.lockStore.write_committed(u, otype, S)))
/*      */           {
/* 1304 */             unloadOk = true;
/*      */           }
/* 1308 */           else if (txojLogger.aitLoggerI18N.isWarnEnabled())
/*      */           {
View Full Code Here

Examples of com.iisigroup.cap.security.captcha.CapSecurityCaptcha.valid()

            String key = method.getAnnotation(Captcha.class)
                .value();
            CapSecurityCaptcha captcha = CapAppContext
                .getBean(CapCaptchaServlet.DEF_RENDERER);
            if (captcha == null
                || !CaptchaStatus.SUCCESS.equals(captcha
                    .valid(params.get(key)))) {
              // 驗証碼無效請重新輸入
              throw new CapMessageException(
                  CapAppContext.getMessage(captcha.getErrorMessage()),
                  getClass());
View Full Code Here

Examples of com.sissi.protocol.iq.register.simple.Username.valid()

  private final Error error = new ServerError().type(ProtocolType.CANCEL).add(NotAcceptable.DETAIL);

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    Username username = protocol.cast(Register.class).findField(Username.NAME, Username.class);
    return username != null && username.valid() ? true : this.writeAndReturn(context, protocol);
  }

  private boolean writeAndReturn(JIDContext context, Protocol protocol) {
    context.write(protocol.parent().reply().setError(this.error));
    return false;
View Full Code Here

Examples of com.sissi.ucenter.relation.muc.validate.ItemStatus.valid()

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    JID group = super.build(protocol.parent().getTo());
    for (Item item : protocol.cast(XMucAdmin.class).getItem()) {
      ItemStatus error = this.validator.valdate(context, group, super.build(item.getJid()));
      if (!error.valid()) {
        return this.writeAndReturn(context, protocol, error.error());
      }
    }
    return true;
  }
View Full Code Here

Examples of com.sissi.ucenter.relation.muc.validate.ItemStatus.valid()

  @Override
  public ItemStatus valdate(JIDContext invoker, JID group, JID item) {
    for (ItemValidator each : this.validators) {
      ItemStatus error = each.valdate(invoker, group, item);
      if (!error.valid()) {
        return error;
      }

    }
    return ValidItemStatus.INSTANCE;
View Full Code Here

Examples of java.io.FileDescriptor.valid()

    LOG.info("Test creating a file with O_CREAT");
    FileDescriptor fd = NativeIO.open(
      new File(TEST_DIR, "testWorkingOpen").getAbsolutePath(),
      NativeIO.O_WRONLY | NativeIO.O_CREAT, 0700);
    assertNotNull(true);
    assertTrue(fd.valid());
    FileOutputStream fos = new FileOutputStream(fd);
    fos.write("foo".getBytes());
    fos.close();

    assertFalse(fd.valid());
View Full Code Here

Examples of java.io.FileDescriptor.valid()

    assertTrue(fd.valid());
    FileOutputStream fos = new FileOutputStream(fd);
    fos.write("foo".getBytes());
    fos.close();

    assertFalse(fd.valid());

    LOG.info("Test exclusive create");
    try {
      fd = NativeIO.open(
        new File(TEST_DIR, "testWorkingOpen").getAbsolutePath(),
View Full Code Here

Examples of java.io.FileDescriptor.valid()

    for (int i = 0; i < 10000; i++) {
      FileDescriptor fd = NativeIO.open(
        new File(TEST_DIR, "testNoFdLeak").getAbsolutePath(),
        NativeIO.O_WRONLY | NativeIO.O_CREAT, 0700);
      assertNotNull(true);
      assertTrue(fd.valid());
      FileOutputStream fos = new FileOutputStream(fd);
      fos.write("foo".getBytes());
      fos.close();
    }
  }
View Full Code Here

Examples of java.io.FileDescriptor.valid()

     * <code>RandomAccessFile</code>.
     */
    public void flush() throws IOException {
  // Fix: 4636212.  When this FIleDescriptor is not valid, do nothing.
  FileDescriptor fd = file.getFD();
        if(fd.valid())
      fd.sync();
    }

    public void close() throws IOException {
        file.close();
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.