Class SequenceIdManager
java.lang.Object
com.itextpdf.commons.actions.sequence.SequenceIdManager
Util class which is responsible for marking of
AbstractIdentifiableElement with appropriate SequenceId.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SequenceIdgetSequenceId(AbstractIdentifiableElement element) Gets an identifier of the element.static voidsetSequenceId(AbstractIdentifiableElement element, SequenceId sequenceId) Provides anAbstractIdentifiableElementwith aSequenceId.
-
Method Details
-
setSequenceId
Provides anAbstractIdentifiableElementwith aSequenceId. Note that it is forbidden to override already existing identifier. If try to provide a new one then exception will be thrown.- Parameters:
-
element- is an identifiable element -
sequenceId- is an identifier to set - Throws:
-
IllegalStateException- if element already has an identifier
-
getSequenceId
Gets an identifier of the element. If it was not provided will returnnull.- Parameters:
-
element- is an identifiable element - Returns:
-
the identifier of the element if presented and
nullotherwise
-