Skip to content
This repository has been archived by the owner on Jun 22, 2019. It is now read-only.

Methods_T_AMLEngineExtensions_NavigationExtensions

AutomationML edited this page Feb 22, 2017 · 1 revision

NavigationExtensions Methods

The NavigationExtensions type exposes the following members.

Methods

 

Name Description
Public methodStatic member CAEXType get CAEXType for an XML node
Public methodStatic member CreateCAEXWrapper(XmlNode) creates CAEX object out of an XML node
Public methodStatic member CreateCAEXWrapper(T)(XmlNode) Creates a CAEX_ClassModel object from an XmlNode when the correct target data type is provided.
Public methodStatic member FindByID(CAEXBasicObject, String) Searches an object starting from the given CAEXBasicObject that has the given ID, the expected type must be casted in the source code. This search bases on XPath and is slow.
Public methodStatic member FindByID(T)(CAEXBasicObject, String) Searches an object starting from the given CAEXBasicObject that has the given ID, the expected type must be given in angle brackets.
Public methodStatic member FindByXPath(CAEXBasicObject, String) Searches a CAEXBasicObject from the given xPath, you must cast the returned CAEXBasicObject into the type you expect. The search bases on XPath and is slow. For speed optimization, use FindFastByPath instead. If your CAEX file has changed, update the hash tables before using this function using updateCAEXObjectHashLists before.
Public methodStatic member FindByXPath(CAEXFileType, String) Searches a CAEXBasicObject from the given path. The search bases on XPath and is slow. For speed optimization, use FindFastByPath instead. If your CAEX file has changed, update the hash tables before using this function using updateCAEXObjectHashLists before.
Public methodStatic member FindByXPath(T)(CAEXBasicObject, String) Searches a CAEXBasicObject from the given xPath, the type must be given in angle brackets. The search bases on XPath and is slow. For speed optimization, use FindFastByPath instead. If your CAEX file has changed, update the hash tables before using this function using updateCAEXObjectHashLists before.
Public methodStatic member FindByXPath(T)(CAEXFileType, String) Searches an object in the whole document that has the given Path. The search bases on XPath and is slow. For speed optimization, use FindFastByPath instead. If your CAEX file has changed, update the hash tables before using this function using updateCAEXObjectHashLists before.
Public methodStatic member FindFastByPath(CAEXFileType, CAEXObject, String) Performs a document wide fast search and returns a CAEXObject given by its ID. It is fast due to hash table support. If your CAEX file has changed, update the hash tables before using this function using updateCAEXObjectHashLists before.
Public methodStatic member FindFastByPath(CAEXObject, CAEXFileType, String) Performs a document wide fast search and returns a CAEXObject given by its ID. It is fast due to hash table support. If your CAEX file has changed, update the hash tables before using this function using updateCAEXObjectHashLists before.
Public methodStatic member GetAllLibraryClasses Get all library classes withing a given Library object or CAEX-Class Object
Public methodStatic member GetAllParentInternalElements Gets all parents in correct order from root parent element to obj excluding the element itself.
Public methodStatic member GetAncestors(T) Gets all Ancestors in the Hierarchy of the specified Caex-Object, which are of Type T
Public methodStatic member GetClassLibrary(T) Enables every CAEXBasicObject, to get its class Library. You must specify the type of the ClassLibrary-Type that you expect.
Public methodStatic member GetInternalElementsAndExternalInterfaces Get all internal elements and interfaces of the given CAEXObject as flat list
Public methodStatic member GetLibraryOfCaexObject Gets the library of any caex object.
Public methodStatic member GetParent(T) Enables every CAEXBasicObject to get its parent object as a CAEX_ClassModel class. You must specify the type of the CAEX_ClassModel type that you exspect.
Public methodStatic member GetParentNodeName Returns the AML node name of the parent
Public methodStatic member OwnerDocument returns a CAEXDocument of an XML node
Public methodStatic memberCode example PostorderTraversal(TSource) Non Recursive Function for Postorder Traversal of an Element Tree
Public methodStatic memberCode example PreorderTraversal(TSource) Non Recursive Function for Preorder Traversal of an Element Tree.
  Back to Top

See Also

Reference

NavigationExtensions Class
AMLEngineExtensions Namespace

  • Introduction
  • [Version History](Version history)
    • [Version 3.5](Version 3.4)
    • [Version 3.1](Version 3.0)
    • [Version 2.1](Version 2.1)
    • [Version 2.0](Version 2.0)
  • [Getting Started](Getting started)
  • Examples
  • AMLEngine API
BEST Practice Content

Extensions

CAEX Elements

AutomationML

Utilities

Interfaceclasses

Exceptions

Objecttables and Document validation

Clone this wiki locally