Click or drag to resize

CAEXPathBuilder Class

Static class supporting the generation and analysis of CAEXPath's
Inheritance Hierarchy
SystemObject
  Aml.Engine.CAEX.ExtensionsCAEXPathBuilder

Namespace: Aml.Engine.CAEX.Extensions
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public static class CAEXPathBuilder

The CAEXPathBuilder type exposes the following members.

Methods
 NameDescription
Public methodStatic memberAliasFromReference Gets the alias name from a reference. If the reference is not a reference with an alias, the return value is string.Empty.
Public methodStatic memberCAEXPath(IEnumerableCAEXObject) Builds the Reference-Path which includes all Names of CAEXObjects in the given list of CAEX objects.
Public methodStatic memberCAEXPath(IEnumerableXElement) Builds the Reference-Path which includes all Names of CAEXObjects in the given list of elements.
Public methodStatic memberCAEXPath(String, CAEXDocumentCAEXSchema) Builds the Reference-Path which includes all names of CAEX objects in the given name array.
Public methodStatic memberCanNormalize Determines whether the specified path can be normalized because it contains path part delimiters
Public methodStatic memberChangeAlias Changes the alias name in a path reference
Public methodStatic memberChangePathStart Changes the first occurrence of the provided oldPathStart to the newPathStart
Public methodStatic memberContainsPathSeparatorChars Determines whether the specified name contains path separator chars.
Public methodStatic memberExternalInterfaceIDInAttributeReference Check, if the provided reference is a reference to an attribute of an ExternalInterface, using the ID of an ExternalInterface.
Public methodStatic memberInstanceIDInAttributeReference Gets the ID of the master parent instance from a reference defined in an Attribute mirror object in the specified CAEX document.
Public methodStatic memberInternalElementIDInInternalLinkReference Gets the InternalElement ID from a reference defined in an InternalLink object.
Public methodStatic memberInternalLinkReferencePath(SystemUnitClassType, InterfaceClassType) Builds the reference Path for an Interface-Reference in an InternalLink
Public methodStatic memberInternalLinkReferencePath(XElement, XElement) gets the reference path for an Interface-Reference in an InternalLink
Public methodStatic memberIsAlias Determines whether the specified part of a path is an alias.
Public methodStatic memberIsAttributeReference Determines, if the path is an Attribute reference. This method is able to distinguish if an UUID is combined with a CAEX path
Public methodStatic memberIsIDReferenceWithAlias Determines whether the specified object reference is an alias reference to an ID in the specified document
Public methodStatic memberIsInterfaceReference Determines, if the path is build using an interface separator. This method is able to distinguish if an interface separator char is used in an interface name and is escaped
Public methodStatic memberIsObjectReferenceWithAlias Determines whether the specified classReference is an alias reference to the provided AutomationML class path.
Public methodStatic memberIsReferenceWithAlias Determines whether the specified reference is defined with an alias separator.
Public methodStatic memberIsValidAttributeReferenceID Determines whether the ID is valid to be used in an attribute mirror reference.
Public methodStatic memberIsValidID Determines whether the specified string can represent an ID
Public methodStatic memberNormalizePath Normalization of a CAEXPath. A normalized path is freed of all path part delimiters '[' and ']' in case that there is no path part name containing a path separator character like '/'.
Public methodStatic memberPathNameArray Returns the Path Part object names of a CAEX Path. If any object name contains a path separator character the path part is enclosed in square brackets '[', ']'. The square brackets are removed from the object name in the returned result (default behaviour). If keepPathPartBrackets is set to true, square brackets are not removed.
Public methodStatic memberPathNameArrayWithSeparator Returns the Path Part object names of a CAEX Path with the Separator Char at the Names End as an array of strings.
Public methodStatic memberPathNameListWithSeparator Returns the Path Part object names of a CAEX Path with the Separator Char at the Names End as an array of strings.
Public methodStatic memberPathPart(CAEXObject, Boolean) Builds the Path Part for any CAEXObject, which may be part of a CAEX Path. The Path Part is build from the object Names and the Part - Syntax, according to chapter 2.8 of the CAEX guide: If defined separators are potentially a valid part of object names, the following syntax shall be used: all path elements shall be separated by square brackets “[“ name “]”. This allows for using the original names and the defined separators at the same time. If the conflict case arises that the described brackets are part of object names, the brackets in the object name shall be escaped by means of common XML escape-sequences. If a name contains any Path part - Separator like '[' or ]' this character will be escaped with '\'.
Public methodStatic memberPathPart(XElement, Boolean) transforms the name of the defined element to a path Part (special characters are escaped).
Public methodStatic memberPathPartName Transforms a name to a path Part (special characters are escaped).
Public methodStatic memberPathPartObjectNames Returns the Path Part object names of a CAEX Path. If any object name contains a path separator character the path part is enclosed in square brackets '[', ']'. The square brackets are removed from the object name in the returned result (default behaviour). If keepPathPartBrackets is set to true, square brackets are not removed.
Public methodStatic memberPathPartObjectNamesWithSeparator Returns the Path Part object names of a CAEX Path with the Separator Char at the Names End
Public methodStatic memberPathPartSeparator(CAEXObject) Returns the Path part separator for an element, which should be put before that element in a Path
Public methodStatic memberPathPartSeparator(XElement) Returns the Path part separator for an element, which should be put before that element in a Path
Public methodStatic memberRemoveAlias Removes the alias from the provided path if the path is IsReferenceWithAlias(String, CAEXDocumentCAEXSchema).
Public methodStatic memberSeparatorChars Gets the defined Separator characters according to the provided schema version.
Top
Fields
 NameDescription
Public fieldStatic memberAliasSeparator The alias separator used after Alias
Public fieldStatic memberAttributeSeparator The attribute separator used before attribute hierarchies.
Public fieldStatic memberInterfaceSeparator The interface separator used before an interface
Public fieldStatic memberObjectSeparator The object separator used between object hierarchies
Public fieldStatic memberPathPartBegin The begin of a path part, used if the object name contains a Path Separator
Public fieldStatic memberPathPartBeginInName The escaped PathPartBegin, used in an object name, if it contains this character
Public fieldStatic memberPathPartEnd The end of a path part, used if the object name contains a Path Separator
Public fieldStatic memberPathPartEndInName The escaped PathPartEnd, used in an object name, if it contains this character
Top
See Also