Click or drag to resize

AutomationMLContainer Class

Class AutomationMLContainer provides methods to save an AutomationML document and related documents which are needed for the interpretation or representation of AutomationML data into a single packed and zipped file. The various parts are assembled into this AutomationMLContainer. The Class provides methods to retrieve parts from a loaded container or for the assembly of parts into one single container. A Utility, to build a self containing container from a loaded CAEXDocument and the external referenced files, retrieved from the external references and ExternalInterface classes is defined in a special service.
Inheritance Hierarchy
SystemObject
  Aml.Engine.AmlObjectsAutomationMLContainer

Namespace: Aml.Engine.AmlObjects
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public class AutomationMLContainer : IAMLFile, 
	IDisposable

The AutomationMLContainer type exposes the following members.

Constructors
 NameDescription
Public methodAutomationMLContainer(Stream) Initializes a new instance of the AutomationMLContainer class using the specified stream resource.
Public methodAutomationMLContainer(String) Initializes a new instance of the AutomationMLContainer class using the specified container file to load or save the package.
Public methodAutomationMLContainer(Stream, FileMode) Initializes a new instance of the AutomationMLContainer class using the specified stream resource.
Public methodAutomationMLContainer(String, FileMode) Initializes a new instance of the AutomationMLContainer class using the specified container file to load or save the package.
Public methodAutomationMLContainer(Stream, FileMode, FileAccess) Initializes a new instance of the AutomationMLContainer class using the specified stream resource.
Public methodAutomationMLContainer(String, FileMode, FileAccess) Initializes a new instance of the AutomationMLContainer class using the specified container file to load or save the package.
Public methodAutomationMLContainer(String, FileMode, FileAccess, FileShare) Initializes a new instance of the AutomationMLContainer class using the specified container file to load or save the package.
Top
Properties
 NameDescription
Public propertyCompressionMode Gets or sets the compression mode which is Normal by default.
Public propertyContainerFilename Gets the full path of the used container file.
Public propertyExtractionDirectory Gets the full path of the directory, used for extraction.
Public propertyFilePath Gets the full path of the used container file.
Public propertyPackage Gets the underlying package of this instance.
Top
Methods
 NameDescription
Public methodAddAnyContent(PackagePart, Stream, Uri, String, Boolean) Adds any content from the specified stream resource to the package creating relationships to the package and to the part, containing the root document using the relationship type AnyContent.
Public methodAddAnyContent(PackagePart, String, Uri, String, Boolean) Adds any content to the package creating relationships to the package and to the part, containing the root document using the relationship type AnyContent.
Public methodAddCAEXSchema(Stream, Uri) Adds a CAEX schema part retrieved from a stream resource to the package and creates a package - part relationship to the package using the relationship type CAEXSchema.
Public methodAddCAEXSchema(String, Uri) Adds a CAEX schema file to the package and creates a package - part relationship to the package using the relationship type CAEXSchema
Public methodAddCollada(PackagePart, Stream, Uri, Boolean) Adds a COLLADA part read from the specified stream resource to the package and creates relationships to the package and to the root document using the Collada.
Public methodAddCollada(PackagePart, String, Uri, Boolean) Adds a COLLADA file to the package and creates relationships to the package and to the root document using the Collada.
Public methodAddColladaSchema(Stream, Uri) Adds a COLLADA schema part from the stream resource to the package and creates a package - part relationship to the package using ColladaSchema.
Public methodAddColladaSchema(String, Uri) Adds a COLLADA schema file to the package and creates a package - part relationship to the package using ColladaSchema.
Public methodAddLibrary(Stream, Uri) Adds a library stream to the package and creates a package - part relationship of type Library.
Public methodAddLibrary(String, Uri) Adds a library file to the package and creates a package - part relationship of type Library.
Public methodAddLibrary(PackagePart, Stream, Uri, Boolean) Adds a library from a stream resource to the package and creates relationships to the package and to the part containing the root document using the relationship type Library.
Public methodAddLibrary(PackagePart, String, Uri, Boolean) Adds a library file to the package and creates relationships to the package and to the package containing the root document using the Library.
Public methodAddPLCopenXml(PackagePart, Stream, Uri, Boolean) Adds a PLCopenXml part read from a stream resource to the package and creates relationships to the package and to the package part containing the root document using the relationship type PLCopenXml.
Public methodAddPLCopenXml(PackagePart, String, Uri, Boolean) Adds a PLCopenXml file to the package and creates relationships to the package and to the package part containing the root document using the relationship type PLCopenXml.
Public methodAddPLCopenXmlSchema(Stream, Uri) Adds a PLCopenXml schema part from a stream resource to the package and creates a package - part relationship of type PLCopenXmlSchema.
Public methodAddPLCopenXmlSchema(String, Uri) Adds a PLCopenXml schema file to the package and creates a package - part relationship of type PLCopenXmlSchema to the package.
Public methodAddRoot(Stream, Uri) Adds a root AML file from a stream resource to the package and creates a package - part relationship of type Root.
Public methodAddRoot(String, Uri) Adds a root AML file to the package and creates a package - part relationship of type Root.
Public methodCheckRelatedParts Returns an enumeration of the related parts for the specified part and relationship type.
Public methodClose Saves and closes the package and all part streams.
Public methodDispose Performs application-defined tasks associated with the release, return or resetting of unmanaged resources.
Public methodExtract(DirectoryInfo) Extracts all parts in the package to the specified directory
Public methodExtract(DirectoryInfo, PackagePart) Extracts the specified part in the package to the specified directory.
Public methodExtractAllFiles Extracts all parts in the package to the specified directory
Public methodFlush Saves the contents of all parts and relationships, contained in the package.
Public methodGetPart Returns the part with the given URI.
Public methodGetParts Returns an enumeration of all parts inside the package.
Public methodGetPartsByRelationShipType Returns an enumeration of all parts with the given relationship type from the package.
Public methodGetRelatedPartByUri Gets the related part by URI.
Public methodGetRelatedParts(PackagePart) Returns an enumeration of all related parts for the given part.
Public methodGetRelatedParts(PackagePart, AutomationMLContainerRelationshipType) Returns an enumeration of the related parts for the specified part and relationship type.
Public methodGetRelationShips Returns an enumeration of all contained relationships of this instance.
Public methodGetRelationShipsByType Returns an enumeration of all relationships with the given relationship type.
Public methodPartExists Determines, if a part with the specified part URI exists.
Public methodRelationShipExists Determines, if the specified relationship type exists.
Public methodRelinkPart(Uri, Uri)Obsolete.
Changes the Uri of a package part. The part is removed and readded with the provided newPartUri. All relationships of the part are updated.
Public methodRelinkPart(PackagePart, PackagePart, Uri) Changes the Uri of a package part. The part is removed and readded with the provided newPartUri. All relationships of the part are updated. If a related Part is defined, with the provided part as a target, the relations are redefined.
Public methodRootDocumentPath Gets the file path to the first root AML document when the container is already extracted. Extract(DirectoryInfo) If the container is created from a stream source or no root document is found, the return value is string.Empty.
Public methodRootDocumentStream Gets the stream of the first root AML document. If no root document is found, the return value is null.
Public methodSave Saves the package and all part streams, the package is still open.
Top
Fields
 NameDescription
Public fieldStatic memberAutomationMLMimeType The AutomationML MIME type
Top
See Also