org.eclipse.jetty.webapp
Class Descriptor

java.lang.Object
  extended by org.eclipse.jetty.webapp.Descriptor
Direct Known Subclasses:
DefaultsDescriptor, FragmentDescriptor, OverrideDescriptor

public class Descriptor
extends Object

Descriptor A web descriptor (web.xml/web-defaults.xml/web-overrides.xml).


Nested Class Summary
static class Descriptor.MetaDataComplete
           
 
Field Summary
protected  ArrayList<String> _classNames
           
protected  boolean _distributable
           
protected  boolean _isOrdered
           
protected  int _majorVersion
           
protected  MetaData _metaData
           
protected  Descriptor.MetaDataComplete _metaDataComplete
           
protected  int _minorVersion
           
protected  List<String> _ordering
           
protected static XmlParser _parser
           
protected  XmlParser.Node _root
           
protected  boolean _validating
           
protected  Resource _xml
           
 
Constructor Summary
Descriptor(Resource xml, MetaData md)
           
 
Method Summary
 void addClassName(String className)
           
 ArrayList<String> getClassNames()
           
 int getMajorVersion()
           
 MetaData getMetaData()
           
 Descriptor.MetaDataComplete getMetaDataComplete()
           
 int getMinorVersion()
           
 List<String> getOrdering()
           
 Resource getResource()
           
 XmlParser.Node getRoot()
           
 boolean isDistributable()
           
 boolean isOrdered()
           
static XmlParser newParser()
           
 void parse()
           
 void processOrdering()
           
 void processVersion()
           
protected static void redirect(XmlParser parser, String resource, URL source)
           
 void setDistributable(boolean distributable)
           
 void setValidating(boolean validating)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_parser

protected static XmlParser _parser

_xml

protected Resource _xml

_root

protected XmlParser.Node _root

_metaDataComplete

protected Descriptor.MetaDataComplete _metaDataComplete

_majorVersion

protected int _majorVersion

_minorVersion

protected int _minorVersion

_classNames

protected ArrayList<String> _classNames

_distributable

protected boolean _distributable

_validating

protected boolean _validating

_metaData

protected MetaData _metaData

_isOrdered

protected boolean _isOrdered

_ordering

protected List<String> _ordering
Constructor Detail

Descriptor

public Descriptor(Resource xml,
                  MetaData md)
Method Detail

newParser

public static XmlParser newParser()
                           throws ClassNotFoundException
Throws:
ClassNotFoundException

redirect

protected static void redirect(XmlParser parser,
                               String resource,
                               URL source)

parse

public void parse()
           throws Exception
Throws:
Exception

getMetaDataComplete

public Descriptor.MetaDataComplete getMetaDataComplete()

getRoot

public XmlParser.Node getRoot()

getMajorVersion

public int getMajorVersion()

getMinorVersion

public int getMinorVersion()

getResource

public Resource getResource()

getMetaData

public MetaData getMetaData()

processVersion

public void processVersion()

processOrdering

public void processOrdering()

addClassName

public void addClassName(String className)

getClassNames

public ArrayList<String> getClassNames()

setDistributable

public void setDistributable(boolean distributable)

isDistributable

public boolean isDistributable()

setValidating

public void setValidating(boolean validating)

isOrdered

public boolean isOrdered()

getOrdering

public List<String> getOrdering()


Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.