org.apache.catalina.startup
Class OrderingResolver.Ordering

java.lang.Object
  extended by org.apache.catalina.startup.OrderingResolver.Ordering
Enclosing class:
OrderingResolver

protected static class OrderingResolver.Ordering
extends java.lang.Object


Field Summary
protected  java.util.Set<OrderingResolver.Ordering> after
           
protected  boolean afterOthers
           
protected  java.util.Set<OrderingResolver.Ordering> before
           
protected  boolean beforeOthers
           
protected  WebOrdering ordering
           
 
Constructor Summary
protected OrderingResolver.Ordering()
           
 
Method Summary
 boolean addAfter(OrderingResolver.Ordering ordering)
           
 boolean addBefore(OrderingResolver.Ordering ordering)
           
 boolean isAfter(OrderingResolver.Ordering ordering)
          Check (recursively) if a fragment is after the specified fragment.
protected  boolean isAfterInternal(OrderingResolver.Ordering ordering, java.util.Set<OrderingResolver.Ordering> checked)
           
 boolean isBefore(OrderingResolver.Ordering ordering)
          Check (recursively) if a fragment is before the specified fragment.
protected  boolean isBeforeInternal(OrderingResolver.Ordering ordering, java.util.Set<OrderingResolver.Ordering> checked)
           
 boolean isFirstAfterOthers()
          Check is a fragment marked as after others is before a fragment that is not.
 boolean isLastBeforeOthers()
          Check is a fragment marked as before others is after a fragment that is not.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ordering

protected WebOrdering ordering

after

protected java.util.Set<OrderingResolver.Ordering> after

before

protected java.util.Set<OrderingResolver.Ordering> before

afterOthers

protected boolean afterOthers

beforeOthers

protected boolean beforeOthers
Constructor Detail

OrderingResolver.Ordering

protected OrderingResolver.Ordering()
Method Detail

addAfter

public boolean addAfter(OrderingResolver.Ordering ordering)

addBefore

public boolean addBefore(OrderingResolver.Ordering ordering)

validate

public void validate()

isBefore

public boolean isBefore(OrderingResolver.Ordering ordering)
Check (recursively) if a fragment is before the specified fragment.

Parameters:
ordering -
Returns:

isBeforeInternal

protected boolean isBeforeInternal(OrderingResolver.Ordering ordering,
                                   java.util.Set<OrderingResolver.Ordering> checked)

isAfter

public boolean isAfter(OrderingResolver.Ordering ordering)
Check (recursively) if a fragment is after the specified fragment.

Parameters:
ordering -
Returns:

isAfterInternal

protected boolean isAfterInternal(OrderingResolver.Ordering ordering,
                                  java.util.Set<OrderingResolver.Ordering> checked)

isLastBeforeOthers

public boolean isLastBeforeOthers()
Check is a fragment marked as before others is after a fragment that is not.

Returns:
true if a fragment marked as before others is after a fragment that is not

isFirstAfterOthers

public boolean isFirstAfterOthers()
Check is a fragment marked as after others is before a fragment that is not.

Returns:
true if a fragment marked as after others is before a fragment that is not


Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.