Examples of empty()


Examples of org.apache.commons.collections.ArrayStack.empty()

        if (stack == null) {
            return;
        }
        try {
            stack.pop();
            if (stack.empty())
                namespaces.remove(prefix);
        } catch (EmptyStackException e) {
            throw createSAXException("endPrefixMapping popped too many times");
        }
View Full Code Here

Examples of org.apache.marmotta.ldpath.template.model.freemarker.TemplateStackModel.empty()

     */
    @SuppressWarnings("unchecked")
    @Override
    public void execute(Environment env, @SuppressWarnings("rawtypes") Map params, TemplateModel[] loopVars, TemplateDirectiveBody body) throws TemplateException, IOException {
        TemplateStackModel contextStack = (TemplateStackModel)env.getVariable("context");
        if(contextStack == null || contextStack.empty()) {
            throw new TemplateModelException("error; no context node available");
        }
        TemplateNodeModel<Node> context = (TemplateNodeModel<Node>)contextStack.peek();

        SimpleScalar pathScalar = (SimpleScalar)params.get("path");
View Full Code Here

Examples of org.apache.struts.action.ActionErrors.empty()

                errors.add("password2",
                           new ActionError("error.password2.required"));
  }

  // Report any errors we have discovered back to the original form
  if (!errors.empty()) {
      saveErrors(request, errors);
            saveToken(request);
      return (new ActionForward(mapping.getInput()));
  }
View Full Code Here

Examples of org.apache.uima.internal.util.IntStack.empty()

      }
      // We have reached a terminal node...
      v.add(node.key);
      v.add(node.element);
      v.add(IntRBTArray.TERMINAL);
      if (addressStack.empty()) {
        node = null;
      } else {
        node = (IntRBTNode) nodeStack.pop();
        address = addressStack.pop();
        v.set(address, v.size() + offset);
View Full Code Here

Examples of org.aspectj.apache.bcel.util.ClassQueue.empty()

    ClassQueue  queue = new ClassQueue();
    ClassVector vec   = new ClassVector();
   
    queue.enqueue(this);
   
    while(!queue.empty()) {
      JavaClass clazz = queue.dequeue();
     
      JavaClass   souper     = clazz.getSuperClass();
      JavaClass[] interfaces = clazz.getInterfaces();
     
View Full Code Here

Examples of org.dmlite.model.persistent.db.db4o.Db4oModelContext.empty()

  }

  public void empty() {
    if (domainContext instanceof Db4oModelContext) {
      Db4oModelContext db4oModelContext = (Db4oModelContext) domainContext;
      db4oModelContext.empty();
    }
  }

  public void close() {
    domainContext.close();
View Full Code Here

Examples of org.eclipse.sapphire.Property.empty()

          property0 = ((WithPart)part).property();
          propertyReadOnly = property0.definition().isReadOnly();
        }
       
             
        if( property0 == null || property0.empty() || propertyReadOnly  )
        {
            return;
        }
       
        final Property property = property0;
View Full Code Here

Examples of org.exolab.castor.util.Stack.empty()

            String path = elemDescriptor.getLocationPath();
            String currentLoc = null;
            //-- Wrapper/Location cleanup
            if (wrappers != null) {
                try {
                    while (!wrappers.empty()) {
                        WrapperInfo wInfo = (WrapperInfo)wrappers.peek();
                        if (path != null) {
                            if (wInfo.location.equals(path)) {
                                path = null;
                                break;
View Full Code Here

Examples of org.hibernate.collection.PersistentCollection.empty()

    if ( !collection.wasInitialized() ) {
      if ( !collection.hasQueuedOperations() ) throw new AssertionFailure( "no queued adds" );
      //do nothing - we only need to notify the cache...
    }
    else if ( !affectedByFilters && collection.empty() ) {
      if ( !emptySnapshot ) persister.remove( id, session );
    }
    else if ( collection.needsRecreate(persister) ) {
      if (affectedByFilters) {
        throw new HibernateException(
View Full Code Here

Examples of org.hibernate.collection.spi.PersistentCollection.empty()

      if ( !collection.hasQueuedOperations() ) {
        throw new AssertionFailure( "no queued adds" );
      }
      //do nothing - we only need to notify the cache...
    }
    else if ( !affectedByFilters && collection.empty() ) {
      if ( !emptySnapshot ) {
        persister.remove( id, session );
      }
    }
    else if ( collection.needsRecreate( persister ) ) {
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.