com.ricebridge.xmlman.in.test
Class TestOutPath

java.lang.Object
  extended bycom.ricebridge.xmlman.in.OutPath
      extended bycom.ricebridge.xmlman.in.test.TestOutPath

public class TestOutPath
extends OutPath

A subclass of OutPath used for testing.

The Source Code of this Java class is available under a BSD-style license.


Nested Class Summary
static class TestOutPath.Part
           
 
Field Summary
 
Fields inherited from class com.ricebridge.xmlman.in.OutPath
CHILD, DESCEND
 
Constructor Summary
TestOutPath(OutData pOutData, boolean pIsAbsolute)
           
TestOutPath(OutData pOutData, boolean pIsAbsolute, List pPartList)
           
TestOutPath(OutData pOutData, boolean pIsAbsolute, String pName0, int pType0)
           
TestOutPath(OutData pOutData, boolean pIsAbsolute, String pName0, int pType0, String pName1, int pType1)
           
TestOutPath(OutData pOutData, boolean pIsAbsolute, String pName0, int pType0, String pName1, int pType1, String pName2, int pType2)
           
TestOutPath(OutData pOutData, boolean pIsAbsolute, String pName0, int pType0, String pName1, int pType1, String pName2, int pType2, String pName3, int pType3)
           
 
Method Summary
 int getNumParts()
          Get the total number of parts.
 OutData getOutData()
          Get the data field represented by this path.
 String getPartName()
          Get the name of the current part.
 String getPartName(int pPartIndex)
          Get the name of the specified part.
 int getPartPosition()
          Get the preferred position of the current part among elements with the same name.
 int getPartPosition(int pPartIndex)
          Get the preferred position of the specified part.
 int getPartType()
          Get the type of the current part: OutPath.CHILD or OutPath.DESCEND.
 int getPartType(int pPartIndex)
          Get the type of the specified part.
 boolean isAbsolute()
          Indicate that this path is absolute.
 boolean isRecord()
          Indicate that this path ends with a record element.
 boolean nextPart()
          get the next path part.
 void setIsAbsolute(boolean pIsAbsolute)
           
 void setIsRecord(boolean pIsRecord)
           
 String toString()
          Debugging description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestOutPath

public TestOutPath(OutData pOutData,
                   boolean pIsAbsolute)

TestOutPath

public TestOutPath(OutData pOutData,
                   boolean pIsAbsolute,
                   String pName0,
                   int pType0)

TestOutPath

public TestOutPath(OutData pOutData,
                   boolean pIsAbsolute,
                   String pName0,
                   int pType0,
                   String pName1,
                   int pType1)

TestOutPath

public TestOutPath(OutData pOutData,
                   boolean pIsAbsolute,
                   String pName0,
                   int pType0,
                   String pName1,
                   int pType1,
                   String pName2,
                   int pType2)

TestOutPath

public TestOutPath(OutData pOutData,
                   boolean pIsAbsolute,
                   String pName0,
                   int pType0,
                   String pName1,
                   int pType1,
                   String pName2,
                   int pType2,
                   String pName3,
                   int pType3)

TestOutPath

public TestOutPath(OutData pOutData,
                   boolean pIsAbsolute,
                   List pPartList)
Method Detail

nextPart

public boolean nextPart()
Description copied from class: OutPath
get the next path part.

Overrides:
nextPart in class OutPath

getPartName

public String getPartName()
Description copied from class: OutPath
Get the name of the current part.

Overrides:
getPartName in class OutPath

getPartType

public int getPartType()
Description copied from class: OutPath
Get the type of the current part: OutPath.CHILD or OutPath.DESCEND.

Overrides:
getPartType in class OutPath

getPartPosition

public int getPartPosition()
Description copied from class: OutPath
Get the preferred position of the current part among elements with the same name.

Overrides:
getPartPosition in class OutPath

getPartName

public String getPartName(int pPartIndex)
Description copied from class: OutPath
Get the name of the specified part.

Overrides:
getPartName in class OutPath

getPartType

public int getPartType(int pPartIndex)
Description copied from class: OutPath
Get the type of the specified part.

Overrides:
getPartType in class OutPath

getPartPosition

public int getPartPosition(int pPartIndex)
Description copied from class: OutPath
Get the preferred position of the specified part.

Overrides:
getPartPosition in class OutPath

getNumParts

public int getNumParts()
Description copied from class: OutPath
Get the total number of parts.

Overrides:
getNumParts in class OutPath

isRecord

public boolean isRecord()
Description copied from class: OutPath
Indicate that this path ends with a record element.

Overrides:
isRecord in class OutPath

isAbsolute

public boolean isAbsolute()
Description copied from class: OutPath
Indicate that this path is absolute.

Overrides:
isAbsolute in class OutPath

getOutData

public OutData getOutData()
Description copied from class: OutPath
Get the data field represented by this path.

Overrides:
getOutData in class OutPath

setIsRecord

public void setIsRecord(boolean pIsRecord)

setIsAbsolute

public void setIsAbsolute(boolean pIsAbsolute)

toString

public String toString()
Description copied from class: OutPath
Debugging description.

Overrides:
toString in class OutPath


Copyright © 2004-2005 Ricebridge