FileDocCategorySizeDatePackage
RelativePath.javaAPI DocGlassfish v2 API2967Sat May 05 19:17:16 BST 2007org.apache.taglibs.standard.extra.spath

RelativePath

public class RelativePath extends Path

Represents a relative SPath expression.

author
Shawn Bayern

Fields Summary
private RelativePath
next
private Step
step
Constructors Summary
public RelativePath(Step step, RelativePath next)
Constructs a new RelativePath object, based on a Step and another (possibly null) RelativePath. If 'all' is true, then the path matches all instances of 'next' underneath 'step'; otherwise; 'next' must be an immediate child of 'step'.

	if (step == null)
	    throw new IllegalArgumentException("non-null step required");
	this.step = step;
	this.next = next;
    
Methods Summary
public java.util.ListgetSteps()

	// simply merge our 'step' with our 'next'
	List l;
	if (next != null)
	    l = next.getSteps();
	else
	    l = new Vector();
	l.add(0, step);
	return l;