INSA
  • Tutorials
  • Documentation
  • Api Documentation
  • Changelog
Show / Hide Table of Contents
  • Relations
    • Xareus.Relations
      • IEngine
      • IObject
      • IObjectType
      • IRelation
      • Object
      • ObjectMatch
      • ObjectPattern
      • ObjectQueryParameters
      • ObjectType
      • PatternType
      • Realization
      • RealizationQueryParameters
      • Reference
      • Relation
      • Type
      • TypeMatch
      • TypeSearch
    • Xareus.Relations.CSharp
      • Engine
    • Xareus.Relations.Extra
      • Helper
      • IRunnableRelation
      • ObjectPatternAttribute
    • Xareus.Relations.Tests
      • Bolt
      • Inheritance
      • RelationsTests
      • S3PM
    • Xareus.Relations.Tests.CSharp
      • EngineTest
    • Xareus.Relations.Utilities
      • Extensions
  • Scenarios
    • Xareus.Scenarios
      • AFunction
      • ASequence
      • Assignment
      • ComplexSequence
      • Decision
      • DecisionEvent
      • DecisionTree
      • Decoration
      • Event
      • Event.EffectorData
      • Event.SensorData
      • Extendable
      • ExtendedInfo
      • ExternalScenario
      • Function
      • IValueParser
      • Identifiable
      • InitialSequence
      • Net
      • Node
      • NodeUserData
      • Parameter
      • Place
      • ProxySequence
      • Reference
      • SMTransition
      • SafePetriNet
      • Scenario
      • ScenarioLoadedEventArgs
      • ScenarioLoadingParameters
      • ScenarioState
      • SequenceState
      • SetValueInContextEffector
      • SimpleSequence
      • State
      • StateMachine
      • Transition
      • TransitionFiredEventArgs
      • TypedValue
      • ValueParser
    • Xareus.Scenarios.Arithmetics
      • NumberBetweenSensor
      • NumberEffector
      • NumberEffector.ArithmeticalOperator
      • NumberSensor
      • NumberSensor.ComparisonOperator
      • RandomNumberEffector
      • Utils
    • Xareus.Scenarios.AssignmentEval
      • AAssignmentEval
    • Xareus.Scenarios.Boolean
      • BooleanEffector
      • BooleanEffector.LogicalOperator
      • BooleanSensor
      • BooleanSensor.ComparisonOperator
    • Xareus.Scenarios.Context
      • BackwardCompatibilityContext
      • BackwardCompatibilityContext.ParserDelegate
      • ContextType
      • IContext
      • Map
      • SimpleDictionary
      • Trie
    • Xareus.Scenarios.ContextInit
      • AContextInit
      • DefaultContextInit
    • Xareus.Scenarios.Converter
      • BoolConverter
      • ByteConverter
      • CharConverter
      • DoubleConverter
      • FloatConverter
      • IntConverter
      • LongConverter
      • PlaceConverter
      • PrimitiveConverter
      • SByteConverter
      • SMTransitionConverter
      • SafePetriNetConverter
      • ScenarioStateConverter
      • ScenarioVariablePathConverter
      • SequenceStateConverter
      • ShortConverter
      • StateConverter
      • StateMachineConverter
      • TransitionConverter
      • UIntConverter
      • ULongConverter
      • UShortConverter
      • VariableConverter
      • VariablePathConverter
    • Xareus.Scenarios.Converters
      • ArrayConverter
      • CollectionConverter
      • StringConverter
      • TypeConverter
    • Xareus.Scenarios.Effector
      • AEffector
    • Xareus.Scenarios.Exception
      • InvalidDataException
      • InvalidStateException
    • Xareus.Scenarios.Extra
      • AssignmentOverlap
      • DefaultTokenUpdate
      • DefaultTokenUpdate.TokenData
      • DownstreamSequenceList
      • EventSensor
      • ExtendedInfoHelper
      • SelectFromListEffector
      • SequenceList
      • TransitionFiredSensor
      • UpstreamSequenceList
      • VariableExistsSensor
    • Xareus.Scenarios.Extra.Time
      • WaitEffector
    • Xareus.Scenarios.FinalTokenMerge
      • AFinalTokenMerge
      • CopyAllTokens
      • PickFirst
    • Xareus.Scenarios.Network
      • AScenarioSender
      • INetSocketTcp
      • NetSocketTcpScenarioReceiver
      • NetSocketTcpScenarioSender
      • NetSocketTcpScenarioSender.ClientNewScenarioRegistration
      • NetSocketTcpScenarioSender.ClientUpdateRegistration
      • NetSocketTcpUtils
      • NetSocketTcpUtils.ReceiveState
    • Xareus.Scenarios.Network.Tests
      • NetworkTest
    • Xareus.Scenarios.ScenarioManipulation
      • AddTokenToSequencesEffector
      • AddTokenToSequencesEffector.TokenData
      • LoadScenarioStateEffector
      • LoadScenarioStateFromFileEffector
      • LoadSequenceStateEffector
      • LoadSequenceStateFromFileEffector
      • RemoveTokensFromSequencesEffector
      • SaveScenarioStateEffector
      • SaveScenarioStateInFileEffector
      • SaveSequenceStateEffector
      • SaveSequenceStateInFileEffector
    • Xareus.Scenarios.Sensor
      • ASensor
      • ASensor.Result
    • Xareus.Scenarios.Tests
      • ConfigurationParameterTest
      • ConvertersTests
      • IContextTest
      • ParserTest
      • ProgramTest
      • ScenarioManipulationTests
      • ScenarioTest
      • TypeTest
      • TypeTest.OverrideClass
    • Xareus.Scenarios.Time
      • RandomTimeSensor
      • TimeParametersConverter
      • TimeSensor
      • TimeUnit
      • TimeUtils
    • Xareus.Scenarios.TokenAssign
      • ATokenAssign
      • DoNothing
    • Xareus.Scenarios.TokenInit
      • ATokenInit
      • DefaultTokenInit
      • EmptyTokenInit
    • Xareus.Scenarios.TokenMerge
      • ATokenMerge
      • CopyAllTokens
      • PickFirst
    • Xareus.Scenarios.TokenSplit
      • ATokenSplit
    • Xareus.Scenarios.Utilities
      • BackwardCompatibilityManager
      • ConfigurationParameterAttribute
      • ContextVariableAttribute
      • EventContextEntryAttribute
      • FunctionDescriptionAttribute
      • FunctionManager
      • IFunctionParametersConverter
      • IRenameClass
      • IRenamedProvider
      • Necessity
      • ObsoleteUtils
      • OverrideClassAttribute
      • ParameterChecker
      • RenamedAttribute
      • RenamedManagerBase
      • RenamedTypeUtils
      • RuntimeTools
      • TypeConverterForAttribute
    • Xareus.Scenarios.Variables
      • ContextVariable<T>
      • EventVariablePath
      • ExternalContextVariablePath
      • ScenarioVariablePath
      • TokenVariablePath
      • Variable
      • VariablePath
  • Scenarios.Relations
      • Program
    • Xareus.Scenarios.Relations
      • Action
      • ActionLogEffector
      • ActionRecordEffector
      • ActionRecorder
      • AnyRelationSensor
      • Change
      • Environment
      • Execution
      • IRealizationManager
      • InitializeRecorderEffector
      • RealizationContext
      • RealizationManager
      • RealizationRecord
      • RelationEffector
      • RelationSensor
      • RelationsValueParser
      • RenamedProvider
      • WriteActionRecordEffector
    • Xareus.Scenarios.Relations.TypeConverter
      • FiveObjectConverter
      • RealizationConverter
      • RelationConverter
  • Utils
    • Xareus.Utils
      • AssemblyUtils
      • DatedEventManager<DataType, TimeType>
      • DatedEventManager<DataType, TimeType>.EventRecord
      • Extensions
      • FieldsAndPropertiesContainer
      • MemberUtils
      • Serialization
      • TypeUtils
      • UriUtils
    • Xareus.Utils.Tests
      • DatedEventManagerTest
      • DatedEventManagerTest.TestDatedEventManager
      • ExtensionsTests
      • MemberUtilsTest
      • TypeUtilsTests
      • TypeUtilsTests.DummySensor
      • TypeUtilsTests.GenericClassUser
      • TypeUtilsTests.GenericClass<T>
      • UriUtilsTest
  • Unity
    • FIVE.Unity
      • UFManager
      • UFRelationEngine
      • UFScenarioEngineKernel
    • Xareus.Unity
      • GameObjectExtension
      • Log4netFileAppender
      • Log4netUnityAppender
      • XULog4net
      • XareusManager
    • Xareus.Unity.Converters
      • ColorConverter
      • MemberInfoConverter
      • MethodInfoConverter
      • QuaternionConverter
      • UnityObjectConverter
      • Vector2Converter
      • Vector2IntConverter
      • Vector3Converter
      • Vector3IntConverter
      • Vector4Converter
      • VectorConverter
    • Xareus.Unity.TypeDescriptorContext
      • DictionaryDescriptorContext
      • SimpleTypeDescriptorContext<T>
      • UnityObjectDescriptorContext
  • Unity Relations
    • Xareus.Relations.Scenarios.Unity
      • TypeWithScenario
    • Xareus.Relations.Unity
      • BaseEditorDescriptorAttribute
      • GenerationMode
      • IRelationEngine
      • IdentifiableBehaviour
      • ObjectPatternAttribute
      • ObjectPatternDescriptorAttribute
      • ObjectQueryWithCallback
      • ParameterDescriptorAttribute
      • RealizationQueryWithCallback
      • RelationDescriptorAttribute
      • RelationEngine
      • RelationEngineKernel
      • RelationParameters
      • Serializer
      • TypeDescriptorAttribute
      • TypeMember
      • TypeParentAttribute
      • UniqueIDGenerator
      • XUObject
      • XUObject.XuObjectChanged
      • XUObjectPattern
      • XUObjectQueryParameters
      • XURealization
      • XURealizationQueryParameters
      • XURelation
      • XUType
      • XUTypeSearch
    • Xareus.Relations.Unity.Converters
      • XUObjectConverter
      • XURelationTypeConverter
      • XUTypeConverter
  • Unity Scenarios
      • ABaseScenarioElementUI
      • DecisionTreeUI
    • Xareus.Scenarios.Network.Unity
      • NetworkClient
      • NetworkManager
      • NetworkServer
      • UnityNetSocketTcpScenarioReceiver
      • UnityNetSocketTcpScenarioSender
    • Xareus.Scenarios.Unity
      • AInUnityStepSensor
      • AUnityContextInit
      • AUnityEffector
      • AUnitySensor
      • AUnityTokenAssign
      • AdditionalScenarioFile
      • AdvancedConfigurationParameterAttribute
      • Comment
      • DecisionTreeEvaluation
      • ExternalContextEntryAttribute
      • IScenarioEngine
      • ObsoleteFunctionAttribute
      • ObsoleteFunctionAttribute.ParameterConvesion
      • RuntimeScenarioFileRegistry
      • ScenarioEngine
      • ScenarioEngineKernel
      • ScenarioRunner
      • Section
    • Xareus.Scenarios.Unity.Edition
      • BusinessControl
      • Constants
      • ContextVariableManager
      • ContextVariableManager.SerializedContextVariables
      • IScenarioSerializer
      • IToolbarEntryData
      • Layer
      • Layer.UxmlFactory
      • Layer.UxmlTraits
      • LayerBar
      • LayerBar.UxmlFactory
      • LayerBar.UxmlTraits
      • LayerBarButton
      • LayerBarButton.UxmlFactory
      • LayerBarButton.UxmlTraits
      • ScenarioEditorExtendedInfoUpdater
      • ScenarioSerializer
      • ScenarioTabHandler
      • ScenarioTabHandler.LayerViewData
      • ScenarioTabHandler.LayerViewDataDictionary
      • ScenarioWrapper
      • ScenarioWrapper.ScenarioDataConsumers
      • SequenceType
      • SerializableScenario
      • Tab
      • Tab.UxmlFactory
      • Tab.UxmlTraits
      • ThemeManager
      • ThemeManager.ThemeChange
      • XmlUtils
    • Xareus.Scenarios.Unity.Edition.Events
      • ArcCreatedEvent
      • ArcDeletedEvent
      • ArcStartedEvent
      • CreateContextToFireEvent
      • DeselectedEventArgs
      • EventCallbackFunctor<EventType>
      • IEventCallbackFunctor
      • IScenarioEventHandler
      • IdChangeEvent
      • LabelChangeEvent
      • OpenExternalScenarioEventArgs
      • ScenarioDataChangedEventArgs
    • Xareus.Scenarios.Unity.Edition.UI
      • ABaseArcUI
      • AClickableElementUI
      • ADecisionArcPreviewUI
      • AMovableElementUI
      • AMovableElementUI.MovableElementUIMoved
      • ArcDirectionUI
      • ArcPreviewUI
      • ArcUI
      • ArrowToNodesDirectionUI
      • ArrowToNodesUI
      • BackgroundGrid
      • CanvasUI
      • CanvasUI.UxmlFactory
      • CanvasUI.UxmlTraits
      • CommentUI
      • ComplexSequenceUI
      • DecisionArcUI
      • DecisionNodeUI
      • DecisionUI
      • EffectorUI
      • ExternalScenarioUI
      • FalseDecisionArcPreviewUI
      • FalseDecisionArcUI
      • FalseOutUI
      • FinalUI
      • InitialUI
      • LayerUI
      • NodeUI
      • PartialTokenUI
      • PetriNetUI
      • PlaceUI
      • SMTransitionUI
      • SectionUI
      • SensorUI
      • SequenceUI
      • StateMachineUI
      • StateUI
      • TokenAssignUI
      • TokenMergeUI
      • TokenUI
      • TransitionUI
      • TrueDecisionArcPreviewUI
      • TrueDecisionArcUI
      • TrueOutUI
    • Xareus.Scenarios.Unity.MiddleVR
      • AUnityClusterEffector
      • VRCall
    • Xareus.Scenarios.Unity.Providers
      • IClassConstraintableExtension
      • IClassReceiverExtension
      • IConstraintable
      • IConstraintable<T>
      • IProvider
      • IProvider<T>
      • IReceiver
      • IReceiver<T>
      • ProvideConstraintAttribute
      • ProviderAttribute
      • ValueChangedEventArgs<T>
    • Xareus.Scenarios.Unity.VisualScripting
      • Constants
      • VisualScriptHolder
      • VisualScriptingEffector
      • VisualScriptingSensor
  • Unity Utils
    • Xareus.Unity
      • MethodParameters
    • Xareus.Unity.Utils
      • ClassTemplate
      • ClusterUtils
      • ColorUtils
      • FileUtils
      • StringUtils
      • UnityEditorUtils
      • UnityUtils
  • Unity Librairies
    • Xareus
      • StaticClassMemberValueSensor
    • Xareus.Relations.Scenarios
      • CheckTypeWithScenarioMemberValueSensor
      • InvokeTypeWithScenarioMethodEffector
      • SetTypeWithScenarioMemberValueEffector
    • Xareus.Scenarios.Input
      • KeyPressedSensor
    • Xareus.Scenarios.Relations
      • CheckXareusObjectTypeMemberValueSensor
      • CheckXareusTypeMemberValueSensor
      • CompareXareusTypesMembersValuesSensor
      • InvokeXareusObjectMethodEffector
      • RandomXareusObjectEffector
      • RandomXareusObjectEffector.Result
      • RandomXareusObjectWithTypeEffector
      • SelectXareusTypesFromListEffector
      • SetXareusTypeMemberValueEffector
    • Xareus.Scenarios.Relations.ParametersConverter
      • CheckXareusTypeMemberValueSensorConverter
      • CompareXareusTypesMembersValuesSensorConverter
      • TypeValueSensorParametersConverter
    • Xareus.Scenarios.Time.Unity
      • UnityTimeSensor
      • UnityTimeSensor.TimeType
    • Xareus.Scenarios.Unity
      • AInvokeMethodEffector
      • AnyInputSensor
      • ChangeColorEffector
      • ChangeParentEffector
      • ChangeTextEffector
      • CheckMemberValueSensor
      • CompareMembersValuesSensor
      • DistanceSensor
      • HasComponentOfTypeSensor
      • InvokeStaticMethodEffector
      • InvokeUnityObjectMethodEffector
      • LoadSceneEffector
      • LogEffector
      • ObjectClickedSensor
      • ObjectCollisionSensor
      • PlaySoundEffector
      • SceneLoadedSensor
      • ScreenFadeEffector
      • ScreenFadeEffector.FadeType
      • SelectChildObjects
      • SelectComponents
      • SetActiveEffector
      • SetEnabledEffector
      • SetMemberValueEffector
      • StartDisplaySpriteEffector
      • StartDisplayTextAssetEffector
      • StartDisplayVideoClipEffector
      • StopAudioSourceEffector
      • StopDisplaySpriteEffector
      • StopDisplayTextAssetEffector
      • StopDisplayVideoClipEffector
      • UnityEventSensor
      • UnityNumberSensor
    • Xareus.Scenarios.Unity.UI
      • ButtonClickedSensor
      • DropdownSensor
      • ToggleValueSensor
      • ToggleValueSensor.SelectMode
    • Xareus.Scenarios.Unity.Utils
      • CompareMembersValuesSensorUpdater
      • ObjectCollisionSensorUpdater
    • Xareus.Unity
      • CheckMethodReturnValueSensor
      • DefaultUnityContextInit
      • DefaultUnityTokenUpdate
      • ScreenFadeEffect
      • SetValueInContextEffector
      • UFEOtherTrigger

Class ExtendedInfoHelper

This class extends Extendable in order to help with dealing with ExtendedInfo data

Inheritance
object
ExtendedInfoHelper
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Xareus.Scenarios.Extra
Assembly: Xareus.Scenarios.Extra.dll
Syntax
public static class ExtendedInfoHelper

Methods

AddExtendedInfoElementArrayValue<T>(Extendable, string, string, string, T)

Add an entry in the given XML element at the given path in the given root XML element. The root XML element and the XML Elements are created if not found

Declaration
public static void AddExtendedInfoElementArrayValue<T>(this Extendable extendable, string rootElementName, string path, string xmlElementName, T value)
Parameters
Type Name Description
Extendable extendable

The extendable containing xmlRootElement in its ExtendedInfo

string rootElementName

The name of the root XML element to use

string path

The path to the parent of the XML element to set

string xmlElementName

The name of the XML element to set

T value

The value of the XML element

Type Parameters
Name Description
T

The type of data to set

GetExtendedInfoAttributeValue<T>(Extendable, string, string, string, T)

Get the attribute value in the given rootElement and at the given path in the ExentdedInfo of the extendable

Declaration
public static T GetExtendedInfoAttributeValue<T>(this Extendable extendable, string rootElementName, string xpath, string attribute, T defaultValue = default)
Parameters
Type Name Description
Extendable extendable

The extendable containing the value in its ExtendedInfo

string rootElementName

The name of the root XML element to use

string xpath

The xpath to the value. Do not use @ in the xpath

string attribute

The name of the attribute in the xpath containing the value

T defaultValue

The value to return if the value could not be found in the ExtendedInfo. (default : default(T))

Returns
Type Description
T

The value if found. The default value otherwise

Type Parameters
Name Description
T

The type of data to return

GetExtendedInfoElementArrayCount(Extendable, string, string, string)

Get the number of entries in the given XML element at the given path in the given root XML element.

Declaration
public static int GetExtendedInfoElementArrayCount(this Extendable extendable, string rootElementName, string path, string xmlElementName)
Parameters
Type Name Description
Extendable extendable

The extendable containing xmlRootElement in its ExtendedInfo

string rootElementName

The name of the root XML element to use

string path

The path to the parent of the XML element to get the number of children of

string xmlElementName

The name of the XML element to get the number of children of

Returns
Type Description
int

GetExtendedInfoElementArray<T>(Extendable, string, string, string, int)

Get the value of the given entry in the given XML element at the given path in the given root XML element.

Declaration
public static T GetExtendedInfoElementArray<T>(this Extendable extendable, string rootElementName, string path, string xmlElementName, int index)
Parameters
Type Name Description
Extendable extendable

The extendable containing xmlRootElement in its ExtendedInfo

string rootElementName

The name of the root XML element to use

string path

The path to the parent of the XML element to get the number of children of

string xmlElementName

The name of the XML element to get the number of children of

int index

The Id of the element to get in the array

Returns
Type Description
T
Type Parameters
Name Description
T

The type of data to set

GetExtendedInfoRoot(Extendable, string)

Get (or create if not found) the root XmlElement with the given name in the extendable's ExtendedInfo

Declaration
public static XmlElement GetExtendedInfoRoot(this Extendable extendable, string rootElementName)
Parameters
Type Name Description
Extendable extendable

The extendable containing the root XML Element in its ExtendedInfo

string rootElementName

The name of the root XML element to get

Returns
Type Description
XmlElement

The specified root XmlElement.

GetExtendedInfoValue<T>(Extendable, string, string, T)

Get the value in the given rootElement and at the given path in the ExentdedInfo of the extendable

Declaration
public static T GetExtendedInfoValue<T>(this Extendable extendable, string rootElementName, string xpath, T defaultValue = default)
Parameters
Type Name Description
Extendable extendable

The extendable containing the value in its ExtendedInfo

string rootElementName

The name of the root XML element to use

string xpath

The xpath to the value

T defaultValue

The value to return if the value could not be found in the ExtendedInfo. (default : default(T))

Returns
Type Description
T

The value if found. The default value otherwise

Type Parameters
Name Description
T

The type of data to return

HasExtendedInfoElement(Extendable, string, string, string)

Check if the XML element value at the given path in the given root XML element exists.

Declaration
public static bool HasExtendedInfoElement(this Extendable extendable, string rootElementName, string path, string xmlElementName)
Parameters
Type Name Description
Extendable extendable

The extendable containing xmlRootElement in its ExtendedInfo

string rootElementName

The name of the root XML element to use

string path

The path to the parent of the XML element to check

string xmlElementName

The name of the XML element to check

Returns
Type Description
bool

True if the value was found, false otherwise

HasExtendedInfoRoot(Extendable, string)

Check if a root XmlElement with the given name exists in the extendable's ExtendedInfo

Declaration
public static bool HasExtendedInfoRoot(this Extendable extendable, string rootElementName)
Parameters
Type Name Description
Extendable extendable

The extendable containing the root XML Element in its ExtendedInfo

string rootElementName

The name of the root XML element to get

Returns
Type Description
bool

True if the root element was found, false otherwise

RemoveExtendedInfoElement(Extendable, string, string, string)

Removes XML element at the given path in the given root XML element if it exists.

Declaration
public static void RemoveExtendedInfoElement(this Extendable extendable, string rootElementName, string path, string xmlElementName)
Parameters
Type Name Description
Extendable extendable

The extendable containing xmlRootElement in its ExtendedInfo

string rootElementName

The name of the root XML element to use

string path

The path to the parent of the XML element to remove

string xmlElementName

The name of the XML element to remove

RemoveExtendedInfoElementArrayValue(Extendable, string, string, string, int)

Removes the given entry of the XML element array value at the given path in the given root XML element.

Declaration
public static void RemoveExtendedInfoElementArrayValue(this Extendable extendable, string rootElementName, string path, string xmlElementName, int index)
Parameters
Type Name Description
Extendable extendable

The extendable containing xmlRootElement in its ExtendedInfo

string rootElementName

The name of the root XML element to use

string path

The path to the parent of the XML element to set

string xmlElementName

The name of the XML element to set

int index

The id of the element to set

RemoveExtendedInfoRoot(Extendable, string)

Remove (if it exists) the root XmlElement with the given name in the extendable's ExtendedInfo

Declaration
public static void RemoveExtendedInfoRoot(this Extendable extendable, string rootElementName)
Parameters
Type Name Description
Extendable extendable

The extendable containing the root XML Element in its ExtendedInfo

string rootElementName

The name of the root XML element to remove

RenameExtendedInfoRoot(Extendable, string, string)

Get (or create if not found) the root XmlElement with the given name in the extendable's ExtendedInfo

Declaration
public static void RenameExtendedInfoRoot(this Extendable extendable, string rootElementName, string newRootElementName)
Parameters
Type Name Description
Extendable extendable

The extendable containing the root XML Element in its ExtendedInfo

string rootElementName

The name of the root XML element to get

string newRootElementName

SetExtendedInfoAttributeValue<T>(Extendable, string, string, string, T)

Set (create if it doesn't exist) the attribute value at the given path of the given root XML element. The root XML element and XML elements in the path are created if necessary

Declaration
public static void SetExtendedInfoAttributeValue<T>(this Extendable extendable, string rootElementName, string path, string xmlAttributeName, T value)
Parameters
Type Name Description
Extendable extendable

The extendable containing xmlRootElement in its ExtendedInfo

string rootElementName

The name of the root XML element to use

string path

Thet path to the XML element that will get its attribute set

string xmlAttributeName

The name of the attribute to set

T value

The value of the attribute

Type Parameters
Name Description
T

The type of data to set

SetExtendedInfoAttributeValue<T>(Extendable, string, string, T)

Set (create if it doesn't exist) the attribute value of the given root XML element. The root XML element is created if not found

Declaration
public static void SetExtendedInfoAttributeValue<T>(this Extendable extendable, string rootElementName, string xmlAttributeName, T value)
Parameters
Type Name Description
Extendable extendable

The extendable containing xmlRootElement in its ExtendedInfo

string rootElementName

The name of the root XML element to use

string xmlAttributeName

The name of the attribute to set

T value

The value of the attribute

Type Parameters
Name Description
T

The type of data to set

SetExtendedInfoElementArrayValue<T>(Extendable, string, string, string, T, int)

Set the value of the given entry of the XML element at the given path in the given root XML element. The entry id must already exist

Declaration
public static void SetExtendedInfoElementArrayValue<T>(this Extendable extendable, string rootElementName, string path, string xmlElementName, T value, int index)
Parameters
Type Name Description
Extendable extendable

The extendable containing xmlRootElement in its ExtendedInfo

string rootElementName

The name of the root XML element to use

string path

The path to the parent of the XML element to set

string xmlElementName

The name of the XML element to set

T value

The value of the XML element

int index

The id of the element to set

Type Parameters
Name Description
T

The type of data to set

SetExtendedInfoElementValue<T>(Extendable, string, string, string, T)

Set (create if it doesn't exist) the XML element value at the given path in the given root XML element. The root XML element and the XML Elements are created if not found

Declaration
public static void SetExtendedInfoElementValue<T>(this Extendable extendable, string rootElementName, string path, string xmlElementName, T value)
Parameters
Type Name Description
Extendable extendable

The extendable containing xmlRootElement in its ExtendedInfo

string rootElementName

The name of the root XML element to use

string path

The path to the parent of the XML element to set

string xmlElementName

The name of the XML element to set

T value

The value of the XML element

Type Parameters
Name Description
T

The type of data to set

SetExtendedInfoElementValue<T>(Extendable, string, string, T)

Set (create if it doesn't exist) the XML element value in the given root XML element. The root XML element and the XML Element are created if not found

Declaration
public static void SetExtendedInfoElementValue<T>(this Extendable extendable, string rootElementName, string xmlElementName, T value)
Parameters
Type Name Description
Extendable extendable

The extendable containing xmlRootElement in its ExtendedInfo

string rootElementName

The name of the root XML element to use

string xmlElementName

The name of the XML element to set

T value

The value of the XML element

Type Parameters
Name Description
T

The type of data to set

INSA     IRISA     Inria     Ouest Valorisation Back to top