fr.paris5.shaman.spirit.insightsource
Class LocationParser

java.lang.Object
  |
  +--fr.paris5.shaman.spirit.insightsource.LocationParser
All Implemented Interfaces:
LocationConstants
Direct Known Subclasses:
LocationParser.Resource

public abstract class LocationParser
extends java.lang.Object
implements LocationConstants

Base class for parsing Insight content location.

Version:
$Id: LocationParser.java,v 1.2 2002/08/07 13:30:53 caillette Exp $
Author:
Laurent Caillette

Inner Class Summary
static class LocationParser.Resource
          Parses the location parameter passed to InsightSourceFactory.getSource.
 
Fields inherited from interface fr.paris5.shaman.spirit.insightsource.LocationConstants
INSIGHT_CONTENT_PROTOCOL, PUBLICATION_PREFIX, TOPIC_PREFIX
 
Constructor Summary
LocationParser(java.lang.String location, int offset)
          Processes a location String, starting at a given offset.
 
Method Summary
 java.lang.String getFragmentLocator()
           
 long getPublicationId()
           
 long getTopicId()
           
 boolean isPublicationIdDefined()
           
 boolean isTopicIdDefined()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationParser

public LocationParser(java.lang.String location,
                      int offset)
               throws InvalidLocationException
Processes a location String, starting at a given offset.
Parameters:
location - The string containing the location.
offset - The position of the first character to process.
Throws:
InvalidLocationException -  
Method Detail

isPublicationIdDefined

public boolean isPublicationIdDefined()

getTopicId

public long getTopicId()

isTopicIdDefined

public boolean isTopicIdDefined()

getPublicationId

public long getPublicationId()

getFragmentLocator

public java.lang.String getFragmentLocator()


Copyright © 2002 Laurent Caillette and l'Université René Descartes, Paris 5. All rights reserved.