Esri Geoportal Server
1.2.9

com.esri.gpt.catalog.schema.indexable.tp
Class TpParser

java.lang.Object
  extended by com.esri.gpt.catalog.schema.indexable.tp.TpParser

public class TpParser
extends Object

Parses the time period descriptors associated with a document.


Constructor Summary
TpParser()
          Default constructor.
 
Method Summary
 String getDocumentName()
          Gets the document name (used for logging only).
 TpIntervals getIntervals()
          Gets the parsed interval collection.
 boolean hasWarnings()
          True if parser warnings were encountered.
 void parseDescriptor(String descriptor)
          Parses a time period descriptor string.
 void processResult()
          Processes the result for the document.
 void setDocumentName(String documentName)
          Sets the document name (used for logging only).
 String toString()
           
 String warningsToString()
          Return warnings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TpParser

public TpParser()
Default constructor.

Method Detail

getDocumentName

public String getDocumentName()
Gets the document name (used for logging only).

Returns:
the document name

setDocumentName

public void setDocumentName(String documentName)
Sets the document name (used for logging only).

Parameters:
documentName - the document name

getIntervals

public TpIntervals getIntervals()
Gets the parsed interval collection.

Returns:
the intervals

hasWarnings

public boolean hasWarnings()
True if parser warnings were encountered.

Returns:
true if parser warnings were encountered

parseDescriptor

public void parseDescriptor(String descriptor)
Parses a time period descriptor string.

Parameters:
descriptor - the descriptor

processResult

public void processResult()
Processes the result for the document.


warningsToString

public String warningsToString()
Return warnings.

Returns:
the warnings (null if none)

toString

public String toString()
Overrides:
toString in class Object

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.