XmlEntity class

A DTD Entity Declaration.

See: https://www.w3.org/TR/xml/#sec-entity-decl

Inheritance
Annotations
  • @immutable

Constructors

XmlEntity(String name, String value, {bool isParameter = false, bool isSystem = false, bool isPublic = false, List<XmlEntity>? externalEntities, String? ndata})
A DTD Entity Declaration.
const

Properties

externalEntities List<XmlEntity>?
The parsed external DTD elements, if they were loaded.
final
hashCode int
The hash code for this object.
no setteroverride
isParameter bool
Whether this entity is a parameter entity.
final
isPublic bool
true if the PUBLIC flag is declared.
final
isSystem bool
true if the SYSTEM flag is declared.
final
name String
The name of the entity.
final
ndata String?
NDATA defines type of data the external entity should be treated as.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The unparsed text value of the entity.
final

Methods

copyWith({String? name, String? value, bool? isSystem, bool? isPublic, List<XmlEntity>? externalEntities, String? ndata, bool copyNull = false}) XmlEntity
Copies this entity with the provided values.
loadExternalEntities() Future<XmlEntity?>
Attempts to load the external entity if there is one and if ndata is null. If ndata is provided, the file is assumed to be of another data type that can't be parsed by this library.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFormattedString({int nestingLevel = 0, String indent = '\t', bool doubleQuotes = true}) String
Returns this node as a formatted string.
inherited
toString({bool doubleQuotes = true}) String
A string representation of this object.
override

Operators

operator ==(Object o) bool
The equality operator.
override

Static Methods

from(String string, {bool trimWhitespace = true}) XmlEntity?
Returns the first DTD Entity found in string.
override
parseString(String string, {bool trimWhitespace = true, int start = 0, int? stop}) List<XmlEntity>?
Returns all DTD Entities found in string.
override