Package org.dlese.dpc.xml.schema
Class ReaderStack
java.lang.Object
org.dlese.dpc.xml.schema.ReaderStack
Mains a pushdown stack of SchemaReaders for use in StructureWalker to resolve qualified names and find
GobalDef instances from the GlobalDefMap.
- Version:
- $Id: ReaderStack.java,v 1.3 2009/03/20 23:34:01 jweather Exp $
- Author:
- ostwald
-
Constructor Summary
ConstructorsConstructorDescriptionReaderStack(GlobalDefMap globalDefMap) Constructor for the ReaderStack object -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()NOT YET DOCUMENTEDbooleanNOT YET DOCUMENTEDgetGlobalDef(String typeName) intgetIndexOfItem(String uri) Gets the indexOfItem attribute of the ReaderStack objectFinds a particular Item from the items listgetItemAt(int index) Gets the itemAt attribute of the ReaderStack objectgetItems()Returns a list of Item instances - one for each element in the choice ReaderStackGets the itemUris attribute of the ReaderStack objectorg.dom4j.NamespacegetNamespaceForPrefix(String prefix) Search the stack (moving from local to more global SchemaReaders) for the namespace belonging to the given prefix.getReaderForPrefix(String prefix) Traverse the stack to find a SchemaReader that defines a namespace for the given prefix.static StringgetReaderUri(SchemaReader reader) Gets the readerUri attribute of the ReaderStack classgetTos()Gets the tos attribute of the ReaderStack objectpop()NOT YET DOCUMENTEDstatic voidNOT YET DOCUMENTEDvoidpush(SchemaReader reader) NOT YET DOCUMENTEDintsize()NOT YET DOCUMENTEDtoString()Description of the Method
-
Constructor Details
-
ReaderStack
Constructor for the ReaderStack object
-
-
Method Details
-
getReaderForPrefix
Traverse the stack to find a SchemaReader that defines a namespace for the given prefix. Return null if a reader is not found. -
getNamespaceForPrefix
Search the stack (moving from local to more global SchemaReaders) for the namespace belonging to the given prefix. -
getItemAt
Gets the itemAt attribute of the ReaderStack object- Parameters:
index- NOT YET DOCUMENTED- Returns:
- The itemAt value
-
push
NOT YET DOCUMENTED- Parameters:
reader- NOT YET DOCUMENTED
-
getTos
Gets the tos attribute of the ReaderStack object- Returns:
- The tos value
-
getGlobalDef
-
pop
NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
-
size
public int size()NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
-
getItems
Returns a list of Item instances - one for each element in the choice ReaderStack- Returns:
- The items value
-
contains
NOT YET DOCUMENTED- Parameters:
uri- NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
-
getItemUris
Gets the itemUris attribute of the ReaderStack object- Returns:
- The itemUris value
-
getReaderUri
Gets the readerUri attribute of the ReaderStack class- Parameters:
reader- NOT YET DOCUMENTED- Returns:
- The readerUri value
-
clear
public void clear()NOT YET DOCUMENTED -
getIndexOfItem
Gets the indexOfItem attribute of the ReaderStack object- Parameters:
uri- NOT YET DOCUMENTED- Returns:
- The indexOfItem value
-
getItem
Finds a particular Item from the items list- Parameters:
uri- NOT YET DOCUMENTED- Returns:
- The item value
-
toString
Description of the Method -
prtln
NOT YET DOCUMENTED- Parameters:
s- NOT YET DOCUMENTED
-