org.modeldriven.fuml.xmi.stream
Class StreamLocation

java.lang.Object
  extended by org.modeldriven.fuml.xmi.stream.StreamLocation
All Implemented Interfaces:
Location

public class StreamLocation
extends Object
implements Location

Stream location data necessary only because Sun's StAX implementation "loses" location data immediately after it is allocated. This class us used to copy location data and associate it with the concerned start-element.

Author:
Scott Cinnamond

Constructor Summary
StreamLocation(Location location)
           
 
Method Summary
 int getCharacterOffset()
          Return the byte or character offset into the input source this location is pointing to.
 int getColumnNumber()
          Return the column number where the current event ends, returns -1 if none is available.
 int getLineNumber()
          Return the line number where the current event ends, returns -1 if none is available.
 String getPublicId()
           
 String getSystemId()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamLocation

public StreamLocation(Location location)
Method Detail

getCharacterOffset

public int getCharacterOffset()
Return the byte or character offset into the input source this location is pointing to.

Specified by:
getCharacterOffset in interface Location

getColumnNumber

public int getColumnNumber()
Return the column number where the current event ends, returns -1 if none is available.

Specified by:
getColumnNumber in interface Location

getLineNumber

public int getLineNumber()
Return the line number where the current event ends, returns -1 if none is available.

Specified by:
getLineNumber in interface Location

getPublicId

public String getPublicId()
Specified by:
getPublicId in interface Location

getSystemId

public String getSystemId()
Specified by:
getSystemId in interface Location


Copyright © 2012. All Rights Reserved.