class final Core · pdftoolkit/pdf 0.12.4
PDF\Document\Structure\NamespaceRoleMapExplicit immutable mappings owned by one namespace.Inheritance and contracts
Parent : PDF\Syntax\Object\DictionaryType
Interfaces : Countable, IteratorAggregate, PDF\Syntax\FileStructure\BasicType, Stringable, Traversable
ISO 32000-2:2020 EC3 definition
Table 356 · Entries in a namespace dictionary
§14.7.4.2 · PDF page 744
Original PDF at the documented commit ↗ · Source metadata at the documented commit ↗ · Public errata ↗
Original retained in the core repository. Table inventory and semantic validation remain distinct.
/RoleMapNS dictionary
Namespace-specific role mappings; cross-namespace graph semantics remain separate.
Construction
__construct()
public function __construct(PDF\Document\Structure\NamespaceRoleMapping ...$mappings)Declared methods
target()
public function target(PDF\Syntax\Object\NameType $from): ?PDF\Document\Structure\StructureRoletargets()
public function targets(): array@return list<StructureRole>with()
public function with(PDF\Syntax\Object\DictionaryObject\Entry $entry): staticwithout()
public function without(PDF\Syntax\Object\NameType|string $key): staticInherited methods
7 methods from parents and contracts
__toString()
public function __toString(): stringcount()
public function count(): intentries()
public function entries(): iterable@return iterable<Entry>get()
public function get(PDF\Syntax\Object\NameType|string $key): ?PDF\Syntax\FileStructure\BasicTypegetIterator()
public function getIterator(): Traversablehas()
public function has(PDF\Syntax\Object\NameType|string $key): booltoPdf()
public function toPdf(PDF\Serialization\SerializationContext $context): string