org.anadix.swingparser
Class TagEvent

java.lang.Object
  extended by org.anadix.swingparser.TagEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EndTagEvent, SimpleTagEvent, StartTagEvent

public abstract class TagEvent
extends Object
implements Serializable

Abstract class for events from parser to the Drools engine

Version:
$Id: $
Author:
tomason
See Also:
Serialized Form

Constructor Summary
TagEvent(BigInteger id, String tagName, Properties attributes, Position position)
          Constructor
TagEvent(BigInteger id, String tagName, Properties attributes, Position position, String source)
          Constructor
 
Method Summary
 boolean equals(Object obj)
          
 Properties getAttributes()
          Gets the attributes of the tag
 BigInteger getId()
          Gets the id of the tag
 Position getPosition()
          Gets the position of the tag
 String getSource()
          Gets the source code ot the tag
 String getTagName()
          Gets the name of the tag
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TagEvent

public TagEvent(BigInteger id,
                String tagName,
                Properties attributes,
                Position position)
Constructor

Parameters:
id - if of a tag
tagName - name of he tag
attributes - attributes of the tag
position - position in document

TagEvent

public TagEvent(BigInteger id,
                String tagName,
                Properties attributes,
                Position position,
                String source)
Constructor

Parameters:
id - if of a tag
tagName - name of he tag
attributes - attributes of the tag
position - position in document
source - source code of the tag
Method Detail

getId

public BigInteger getId()
Gets the id of the tag

Returns:
id of the tag

getTagName

public String getTagName()
Gets the name of the tag

Returns:
name of the tag

getAttributes

public Properties getAttributes()
Gets the attributes of the tag

Returns:
attributes of the tag

getPosition

public Position getPosition()
Gets the position of the tag

Returns:
position of the tag

getSource

public String getSource()
Gets the source code ot the tag

Returns:
source code of the tag

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.