pds.label
Class PDSItem

java.lang.Object
  extended by pds.label.PDSItem

public class PDSItem
extends java.lang.Object

PDSItem is a class that descibes the location within a PDSLabel of one or more elements.

Since:
1.0

Field Summary
 int mEnd
          The index of the end element of the item
 int mStart
          The index of the first element of the item
 
Constructor Summary
PDSItem()
          Creates an instance of a PDSItem
 
Method Summary
 void empty()
          Clears all settings of the item.
 boolean isValid()
          Determines if a PDSItem is valid.
 boolean valid()
          Determines if a PDSItem is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mStart

public int mStart
The index of the first element of the item


mEnd

public int mEnd
The index of the end element of the item

Constructor Detail

PDSItem

public PDSItem()
Creates an instance of a PDSItem

Method Detail

valid

public boolean valid()
Determines if a PDSItem is valid. A valid PDSItem is set to point to a range of elements within a PDSLabel.

Returns:
true if a range is set. false is no range is set.
Since:
1.0

isValid

public boolean isValid()
Determines if a PDSItem is valid. A valid PDSItem is set to point to a range of elements within a PDSLabel.

Returns:
true if a range is set. false is no range is set.
Since:
1.0

empty

public void empty()
Clears all settings of the item. Once an item is cleared it no longer points to a valid range of elements.

Since:
1.0