ooc
Class TagErrorMsg

java.lang.Object
  extended byooc.TagErrorMsg
All Implemented Interfaces:
TagError

public class TagErrorMsg
extends java.lang.Object
implements TagError


Constructor Summary
TagErrorMsg(TagAttribute attribute, java.lang.String msg)
           
TagErrorMsg(Tag tag, java.lang.String msg)
           
 
Method Summary
 Tag getTag()
          Returns the tag in which this error was found.
 void print(java.io.PrintStream out, java.lang.String beforeNewLine)
          Prints a description of the error to the given stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagErrorMsg

public TagErrorMsg(Tag tag,
                   java.lang.String msg)

TagErrorMsg

public TagErrorMsg(TagAttribute attribute,
                   java.lang.String msg)
Method Detail

getTag

public Tag getTag()
Description copied from interface: TagError
Returns the tag in which this error was found.

Specified by:
getTag in interface TagError

print

public void print(java.io.PrintStream out,
                  java.lang.String beforeNewLine)
Description copied from interface: TagError
Prints a description of the error to the given stream. For every new line created, 'beforeNewLine' is added first.

Specified by:
print in interface TagError