org.jnetpcap.protocol.application
Class Html.HtmlTag

java.lang.Object
  extended by org.jnetpcap.protocol.application.Html.HtmlTag
Enclosing class:
Html

public static class Html.HtmlTag
extends java.lang.Object

Html tag instance parsed from the html document.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
static class Html.HtmlTag.Type
          The Enum Type.
 
Constructor Summary
Html.HtmlTag(Html.Tag tag, Html.HtmlTag.Type type, java.lang.String tagString, java.lang.String source, int start, int end)
          Instantiates a new html tag.
 
Method Summary
 int getEnd()
          Gets the end.
 java.util.Map<Html.Tag.Param,java.lang.String> getParams()
          Gets the params.
 java.lang.String getSource()
          Gets the source.
 int getStart()
          Gets the start.
 Html.Tag getTag()
          Gets the tag.
 java.lang.String getTagString()
          Gets the tag string.
 Html.HtmlTag.Type getType()
          Gets the type.
 java.lang.String toString()
          To string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Html.HtmlTag

public Html.HtmlTag(Html.Tag tag,
                    Html.HtmlTag.Type type,
                    java.lang.String tagString,
                    java.lang.String source,
                    int start,
                    int end)
Instantiates a new html tag.

Parameters:
tag - the tag
type - the type
tagString - the tag string
source - the source
start - the start
end - the end
Method Detail

getEnd

public final int getEnd()
Gets the end.

Returns:
the end

getParams

public final java.util.Map<Html.Tag.Param,java.lang.String> getParams()
Gets the params.

Returns:
the params

getSource

public final java.lang.String getSource()
Gets the source.

Returns:
the source

getStart

public final int getStart()
Gets the start.

Returns:
the start

getTag

public final Html.Tag getTag()
Gets the tag.

Returns:
the tag

getTagString

public java.lang.String getTagString()
Gets the tag string.

Returns:
the tag string

getType

public final Html.HtmlTag.Type getType()
Gets the type.

Returns:
the type

toString

public java.lang.String toString()
To string.

Overrides:
toString in class java.lang.Object
Returns:
the string
See Also:
Object.toString()