Interface IAttributes
-
- All Superinterfaces:
java.lang.Iterable<IAttribute>
- All Known Implementing Classes:
CssPseudoElementNode.AttributesStub,JsoupAttributes,PageMarginBoxContextNode.AttributesStub
public interface IAttributes extends java.lang.Iterable<IAttribute>
Interface for a series of HTML attributes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAttribute(java.lang.String key)Gets the value of an attribute, given a key.voidsetAttribute(java.lang.String key, java.lang.String value)Adds a key and a value of an attributes.intsize()Returns the number of attributes.
-
-
-
Method Detail
-
getAttribute
java.lang.String getAttribute(java.lang.String key)
Gets the value of an attribute, given a key.- Parameters:
key- the key- Returns:
- the attribute
-
setAttribute
void setAttribute(java.lang.String key, java.lang.String value)Adds a key and a value of an attributes.- Parameters:
key- the keyvalue- the value
-
size
int size()
Returns the number of attributes.- Returns:
- the number of attributes
-
-