com.sapportals.wcm.util.html
Interface IHTMLElement
[contained in: com.sap.netweaver.bc.util.par - bc.util.public_api.jar]
- 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:
- Name : the name of the tag. If the underlying document is
xhtml, the name of an element is the
Qualified Name as defined in XML Namespaces
. So, namespace prefixes will be part of the element name.
- Length : the number of characters this element has. Note that
angular brackets are part of the element, so '<tag>' has length 5.
Copyright (c) SAP AG 2001-2003
|
Method Summary |
int |
copyTo(char[] ch,
int offset)
Copy all characters of this element into the given buffer. |
java.lang.String |
getName()
Returns the element name. |
int |
getNameLength()
Returns the length of the element name. |
boolean |
hasName(java.lang.String name)
Check if element has specified name. |
int |
length()
Return the number of characters this element has. |
int |
writeTo(java.io.Writer writer)
Copy the characters of this element onto the given Writer. |
getName
public java.lang.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
public int getNameLength()
- Returns the length of the element name.
- Returns:
- length of element name
hasName
public boolean hasName(java.lang.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
public 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 tooffset - where in the buffer to start- Returns:
- number of characters copied
length
public int length()
- Return the number of characters this element has.
- Returns:
- element length
writeTo
public int writeTo(java.io.Writer writer)
throws java.io.IOException
- Copy the characters of this element onto the given Writer.
- Parameters:
writer - to write characters to- Returns:
- number of characters written
- Throws:
java.io.IOException - on failure from writer
Copyright © 2004 by
SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein
as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other
countries all over the world. All other product and service names mentioned are the trademarks of their respective companies.
Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies
("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be
liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are
those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein
should be construed as constituting an additional warranty.