XmlAttlist class

An Attribute-list Declaration.

Attribute-list declarations are used to define the set of attributes an element should or may have, and set contstrains on the data type and content of the attribute's values.

See: https://www.w3.org/TR/xml/#attdecls

Inheritance
Annotations
  • @immutable

Constructors

XmlAttlist({required String element, required String attribute, required String? type, XmlAttlistIdentifier? identifier, String? defaultValue})
An Attribute-list Declaration.
const

Properties

attribute String
The name of the attribute.
final
defaultValue String?
The default value of the attribute.
final
element String
The element the attribute applies to.
final
hashCode int
The hash code for this object.
no setteroverride
identifier XmlAttlistIdentifier?
Whether the attribute's value is required, optional (implied), or fixed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String?
The type of data the attribute accepts.
final

Methods

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}) XmlAttlist?
Returns the first DTD Attlist Declaration found in string. string must not be null.
override
parseString(String string, {bool trimWhitespace = true, int start = 0, int? stop}) List<XmlAttlist>?
Returns a list of every DTD Attlist Declaration found in string. string must not be null.
override