com.sapportals.wcm.util.html

Interface IHTMLElement

All Known Subinterfaces:
IHTMLElementStart

public interface IHTMLElement

Represents a HTML tag for an event.

This class represents a HTML tag for element events during parsing. The element has the following properties:

Copyright (c) SAP AG 2001-2003


Method Summary
 int copyTo(char[] ch, int offset)
          Copy all characters of this element into the given buffer.
 String getName()
          Returns the element name.
 int getNameLength()
          Returns the length of the element name.
 boolean hasName(String name)
          Check if element has specified name.
 int length()
          Return the number of characters this element has.
 int writeTo(Writer writer)
          Copy the characters of this element onto the given Writer.
 

Method Detail

getName

String getName()
Returns the element name. See hasName(String) for a cheaper method to compare names, if that is all you're interested in.

Returns:
the name of the element

getNameLength

int getNameLength()
Returns the length of the element name.

Returns:
length of element name

hasName

boolean hasName(String name)
Check if element has specified name. The check is done case-insensitiv.

Parameters:
name - to check against
Returns:
if element name equalsIgnoreCase the given name

copyTo

int copyTo(char[] ch,
           int offset)
Copy all characters of this element into the given buffer. Ensure that the buffer can keep length() chars.

Parameters:
ch - buffer to copy to
offset - where in the buffer to start
Returns:
number of characters copied

length

int length()
Return the number of characters this element has.

Returns:
element length

writeTo

int writeTo(Writer writer)
            throws IOException
Copy the characters of this element onto the given Writer.

Parameters:
writer - to write characters to
Returns:
number of characters written
Throws:
IOException - on failure from writer
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice