org.japano.metadata.xjavadoc
Class JavadocTag

java.lang.Object
  extended by org.japano.metadata.xjavadoc.JavadocTag
All Implemented Interfaces:
MetadataTag

public class JavadocTag
extends java.lang.Object
implements MetadataTag

XJavadoc implementation of the MetadataTag interface.

Version:
$Id: JavadocTag.java,v 1.10 2005/09/27 21:30:51 fforw Exp $ SourceForge.net Logo
Author:
Sven Helmberger ( sven dot helmberger at gmx dot de )

Method Summary
 void error(java.lang.String message)
          Generates an error message with this tag's start as error position.
 java.lang.String getAttribute(java.lang.String name)
          Returns the tag attribute value with the given name or null if no such attribute is set.
 java.lang.String[] getAttributes(java.lang.String name)
          Returns the tag attribute value with the given name or null if no such attribute is set.
 MetadataTag getSibling(TagType siblingType)
          Returns the first sibling of the given type.
 java.util.List getSiblings(TagType siblingType)
          Returns a list with siblings of this tag of the given type.
 TagType getType()
          Returns the japano tag type for this metadata tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

error

public void error(java.lang.String message)
Description copied from interface: MetadataTag
Generates an error message with this tag's start as error position.

Specified by:
error in interface MetadataTag

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Description copied from interface: MetadataTag
Returns the tag attribute value with the given name or null if no such attribute is set.

Specified by:
getAttribute in interface MetadataTag
Parameters:
name - attribute name
Returns:
value or null

getAttributes

public java.lang.String[] getAttributes(java.lang.String name)
Description copied from interface: MetadataTag
Returns the tag attribute value with the given name or null if no such attribute is set.

Specified by:
getAttributes in interface MetadataTag
Parameters:
name - attribute name
Returns:
value or null

getSiblings

public java.util.List getSiblings(TagType siblingType)
Description copied from interface: MetadataTag
Returns a list with siblings of this tag of the given type.

Specified by:
getSiblings in interface MetadataTag
Parameters:
siblingType - tag type
Returns:
list

getSibling

public MetadataTag getSibling(TagType siblingType)
Description copied from interface: MetadataTag
Returns the first sibling of the given type.

Specified by:
getSibling in interface MetadataTag
Parameters:
siblingType - tag type
Returns:
list

getType

public TagType getType()
Description copied from interface: MetadataTag
Returns the japano tag type for this metadata tag.

Specified by:
getType in interface MetadataTag
Returns:
tag type
See Also:
TagType