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.
 
Field Summary
private  java.lang.String fragmentLocator
           
private  java.lang.String location
           
private  int offset
           
private  long publicationId
           
private  long topicId
           
 
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()
           
private  void parse()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

offset

private final int offset

location

private final java.lang.String location

topicId

private long topicId

publicationId

private long publicationId

fragmentLocator

private java.lang.String fragmentLocator
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

parse

private void parse()
            throws InvalidLocationException

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.