org.modeldriven.fuml.xmi.stream
Class StreamLocation

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

public class StreamLocation
extends java.lang.Object
implements javax.xml.stream.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(javax.xml.stream.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.
 java.lang.String getPublicId()
           
 java.lang.String getSystemId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamLocation

public StreamLocation(javax.xml.stream.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 javax.xml.stream.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 javax.xml.stream.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 javax.xml.stream.Location

getPublicId

public java.lang.String getPublicId()
Specified by:
getPublicId in interface javax.xml.stream.Location

getSystemId

public java.lang.String getSystemId()
Specified by:
getSystemId in interface javax.xml.stream.Location


Copyright © 2015. All Rights Reserved.