AttachedFile class
An element that is used to refer to an attached file, typically a manufacturer's proprietary file that must be part of the data transfer file set.
- Inheritance
-
- Object
- Iso11783Element
- AttachedFile
- Mixed-in types
- Available extensions
- Annotations
-
- @CopyWith()
- @XmlRootElement(name: 'AFE')
- @XmlSerializable(createMixin: true)
Constructors
-
AttachedFile.new({required String filenameWithExtension, required Preserve preserve, required String manufacturerGLN, required int fileType, String? fileVersion, int? fileLength, List<
XmlAttribute> ? customAttributes}) -
Default factory for creating an AttachedFile with verified
arguments.
factory
- AttachedFile.fromXmlElement(XmlElement element)
-
Creates an AttachedFile from
element
.factory
Properties
- copyWith → _$AttachedFileCWProxy
-
Available on AttachedFile, provided by the $AttachedFileCopyWith extension
Returns a callable class that can be used as follows:instanceOfAttachedFile.copyWith(...)
or like so:instanceOfAttachedFile.copyWith.fieldName(...)
.no setter -
customAttributes
→ List<
XmlAttribute> ? -
XML attributes that exist in the files but are not part of the standard.
finalinherited
- description → String
-
A short description of the element type.
finalinherited
- elementType → Iso11783ElementType
-
Which type of ISO 11783-10 element this is based on the XML tag.
finalinherited
- fileLength → int?
-
The length of the file in bytes.
final
- filenameWithExtension → String
-
Filename with extension for the attached file.
final
- fileType → int
-
What type of file that is attached.
1 = LINKLIST
1-127 = reserved for ISO predefined file types.
128-254 = manufacturer proprietary file types.
final
- fileVersion → String?
-
The version of the file.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
The ID of this, if it has one;
no setterinherited
- idRefPattern → String?
-
The ID reference pattern (regExp) for id if there is one.
no setterinherited
- manufacturerGLN → String
-
GS1 Global Location Number for the manufacturer, can be blank for bindings
predefined by ISO 11783.
final
- onlyVersion4AndAbove → bool
-
Whether this element type is only supported in version 4 and above.
finalinherited
- preserve → Preserve
-
Whether the file should be preserved or not.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
-
recursiveChildren
→ Iterable<
Iso11783Element> ? -
All the element children connected to this, and their children
recursively.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selfWithRecursiveChildren
→ Iterable<
Iso11783Element> -
All the element children connected to this, and their children
recursively.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited
Methods
-
buildXmlChildren(
XmlBuilder builder, {Map< String, String> namespaces = const {}}) → void -
Builds the XML children of this on the
builder
. -
buildXmlElement(
XmlBuilder builder, {Map< String, String> namespaces = const {}}) → void -
inherited
-
mapPropsToString(
Type runtimeType, List< Object?> props) → String -
Returns a string for
props
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toXmlAttributes(
{Map< String, String?> namespaces = const {}}) → List<XmlAttribute> - Returns a list of the XML attributes of this.
-
toXmlChildren(
{Map< String, String?> namespaces = const {}}) → List<XmlNode> -
inherited
-
toXmlElement(
{Map< String, String?> namespaces = const {}}) → XmlElement -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- extensionPattern → const String
- Regular expression matching pattern for the filenameWithExtension.