Class PageMarginBoxContextNode.AttributesStub
java.lang.Object
com.itextpdf.styledxmlparser.css.page.PageMarginBoxContextNode.AttributesStub
- All Implemented Interfaces:
IAttributes, Iterable<IAttribute>
- Enclosing class:
PageMarginBoxContextNode
A simple
IAttributes implementation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String key) Gets the value of an attribute, given a key.iterator()voidsetAttribute(String key, String value) Adds a key and a value of an attributes.intsize()Returns the number of attributes.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
AttributesStub
private AttributesStub()
-
-
Method Details
-
getAttribute
Gets the value of an attribute, given a key.- Specified by:
getAttributein interfaceIAttributes- Parameters:
key- the key- Returns:
- the attribute
-
setAttribute
Adds a key and a value of an attributes.- Specified by:
setAttributein interfaceIAttributes- Parameters:
key- the keyvalue- the value
-
size
public int size()Returns the number of attributes.- Specified by:
sizein interfaceIAttributes- Returns:
- the number of attributes
-
iterator
- Specified by:
iteratorin interfaceIterable<IAttribute>
-