Difference between revisions of "DOMObject"
From Virtual World Web Wiki
(Documentation for the DOMObject class) |
(Documentation for the DOMObject class) |
||
Line 1: | Line 1: | ||
The base class for all DOM node types | The base class for all DOM node types | ||
===Properties=== | ===Properties=== | ||
− | :{{CSharp|bool Accessable}} | + | :{{CSharp|bool Accessable {get;} }} |
− | :{{CSharp|DOMAttributeCache AttributeCache}} | + | :{{CSharp|DOMAttributeCache AttributeCache {get; set;} }} |
− | :{{CSharp|DOMAttributeSet Attributes}} | + | :{{CSharp|DOMAttributeSet Attributes {get;} }} |
− | :{{CSharp|Nullable<Guid> BaseTypeID}} | + | :{{CSharp|Nullable<Guid> BaseTypeID {get; set;} }} |
− | :{{CSharp|DOMObjectCollection Children}} | + | :{{CSharp|DOMObjectCollection Children {get;} }} |
− | :{{CSharp|string Class}} | + | :{{CSharp|string Class {get; set;} }} |
− | :{{CSharp|ReferenceContract Contract}} | + | :{{CSharp|ReferenceContract Contract {get; set;} }} |
− | :{{CSharp|DOMDocument Document}} | + | :{{CSharp|DOMDocument Document {get;} }} |
− | :{{CSharp|bool Enabled}} | + | :{{CSharp|bool Enabled {get; set;} }} |
− | :{{CSharp|long ID}} | + | :{{CSharp|long ID {get; set;} }} |
::The unique ID of this object in the view. DOM node IDs can change if a node is moved between view documents or removed from a document in which case this property will return zero. DOM node IDs are allocated by the RootDocument in a view | ::The unique ID of this object in the view. DOM node IDs can change if a node is moved between view documents or removed from a document in which case this property will return zero. DOM node IDs are allocated by the RootDocument in a view | ||
− | :{{CSharp|Nullable<Guid> InstanceIndex}} | + | :{{CSharp|Nullable<Guid> InstanceIndex {get;} }} |
− | :{{CSharp|DOMObject InstanceRoot}} | + | :{{CSharp|DOMObject InstanceRoot {get;} }} |
− | :{{CSharp|Nullable<Guid> InstanceTypeID}} | + | :{{CSharp|Nullable<Guid> InstanceTypeID {get; set;} }} |
− | :{{CSharp|bool IsInReference}} | + | :{{CSharp|bool IsInReference {get;} }} |
− | :{{CSharp|bool IsInstanceRoot}} | + | :{{CSharp|bool IsInstanceRoot {get;} }} |
− | :{{CSharp|bool IsTemplateRoot}} | + | :{{CSharp|bool IsTemplateRoot {get;} }} |
− | :{{CSharp|bool IsTopLevelReference}} | + | :{{CSharp|bool IsTopLevelReference {get;} }} |
− | :{{CSharp|bool IsTypeRoot}} | + | :{{CSharp|bool IsTypeRoot {get; set;} }} |
− | :{{CSharp|Guid MergeID}} | + | :{{CSharp|Guid MergeID {get; set;} }} |
− | :{{CSharp|bool MergeLocked}} | + | :{{CSharp|bool MergeLocked {get;} }} |
− | :{{CSharp|Guid NodeID}} | + | :{{CSharp|Guid NodeID {get; set;} }} |
− | :{{CSharp|string NodePath}} | + | :{{CSharp|string NodePath {get;} }} |
::Gets a path which can be used to locate a specific node in the DOM using the FindNode method | ::Gets a path which can be used to locate a specific node in the DOM using the FindNode method | ||
− | :{{CSharp|IEnumerable<DOMAttribute> ObjectAttributes}} | + | :{{CSharp|IEnumerable<DOMAttribute> ObjectAttributes {get;} }} |
− | :{{CSharp|DOMObject Parent}} | + | :{{CSharp|DOMObject Parent {get;} }} |
− | :{{CSharp|DOMPropertyCollection Properties}} | + | :{{CSharp|DOMPropertyCollection Properties {get;} }} |
− | :{{CSharp|DOMProtectionFlags ProtectionFlags}} | + | :{{CSharp|DOMProtectionFlags ProtectionFlags {get; set;} }} |
− | :{{CSharp|Guid RecordID}} | + | :{{CSharp|Guid RecordID {get;} }} |
::The ID used to uniquely identify an object. RecordIDs are generated when a new DOMObject is created. | ::The ID used to uniquely identify an object. RecordIDs are generated when a new DOMObject is created. | ||
− | :{{CSharp|DOMDocument RootDocument}} | + | :{{CSharp|DOMDocument RootDocument {get;} }} |
− | :{{CSharp|DateTime ServerTime}} | + | :{{CSharp|DateTime ServerTime {get;} }} |
− | :{{CSharp|List<string> SystemPropertyNames}} | + | :{{CSharp|List<string> SystemPropertyNames {get;} }} |
− | :{{CSharp|Object Tag}} | + | :{{CSharp|Object Tag {get; set;} }} |
− | :{{CSharp|Guid TemplateID}} | + | :{{CSharp|Guid TemplateID {get; set;} }} |
− | :{{CSharp|DOMObject TemplateRoot}} | + | :{{CSharp|DOMObject TemplateRoot {get;} }} |
− | :{{CSharp|bool Temporary}} | + | :{{CSharp|bool Temporary {get; set;} }} |
− | :{{CSharp|string Title}} | + | :{{CSharp|string Title {get; set;} }} |
− | :{{CSharp|bool Transient}} | + | :{{CSharp|bool Transient {get; set;} }} |
− | :{{CSharp|Guid TypeID}} | + | :{{CSharp|Guid TypeID {get; set;} }} |
− | :{{CSharp|Nullable<Guid> TypeIndex}} | + | :{{CSharp|Nullable<Guid> TypeIndex {get;} }} |
− | :{{CSharp|int TypeNodeID}} | + | :{{CSharp|int TypeNodeID {get; set;} }} |
− | :{{CSharp|bool TypeReference}} | + | :{{CSharp|bool TypeReference {get; set;} }} |
− | :{{CSharp|Boolean[] TypeReferenceReload}} | + | :{{CSharp|Boolean[] TypeReferenceReload {get; set;} }} |
− | :{{CSharp|DOMObject TypeRoot}} | + | :{{CSharp|DOMObject TypeRoot {get;} }} |
− | :{{CSharp|bool Validated}} | + | :{{CSharp|bool Validated {get; set;} }} |
− | :{{CSharp|bool Viewable}} | + | :{{CSharp|bool Viewable {get;} }} |
− | :{{CSharp|bool Visible}} | + | :{{CSharp|bool Visible {get; set;} }} |
===Events=== | ===Events=== |
Revision as of 13:35, 11 October 2016
The base class for all DOM node types
Properties
- bool Accessable {get;}
- DOMAttributeCache AttributeCache {get; set;}
- DOMAttributeSet Attributes {get;}
- Nullable<Guid> BaseTypeID {get; set;}
- DOMObjectCollection Children {get;}
- string Class {get; set;}
- ReferenceContract Contract {get; set;}
- DOMDocument Document {get;}
- bool Enabled {get; set;}
- long ID {get; set;}
- The unique ID of this object in the view. DOM node IDs can change if a node is moved between view documents or removed from a document in which case this property will return zero. DOM node IDs are allocated by the RootDocument in a view
- Nullable<Guid> InstanceIndex {get;}
- DOMObject InstanceRoot {get;}
- Nullable<Guid> InstanceTypeID {get; set;}
- bool IsInReference {get;}
- bool IsInstanceRoot {get;}
- bool IsTemplateRoot {get;}
- bool IsTopLevelReference {get;}
- bool IsTypeRoot {get; set;}
- Guid MergeID {get; set;}
- bool MergeLocked {get;}
- Guid NodeID {get; set;}
- string NodePath {get;}
- Gets a path which can be used to locate a specific node in the DOM using the FindNode method
- IEnumerable<DOMAttribute> ObjectAttributes {get;}
- DOMObject Parent {get;}
- DOMPropertyCollection Properties {get;}
- DOMProtectionFlags ProtectionFlags {get; set;}
- Guid RecordID {get;}
- The ID used to uniquely identify an object. RecordIDs are generated when a new DOMObject is created.
- DOMDocument RootDocument {get;}
- DateTime ServerTime {get;}
- List<string> SystemPropertyNames {get;}
- Object Tag {get; set;}
- Guid TemplateID {get; set;}
- DOMObject TemplateRoot {get;}
- bool Temporary {get; set;}
- string Title {get; set;}
- bool Transient {get; set;}
- Guid TypeID {get; set;}
- Nullable<Guid> TypeIndex {get;}
- int TypeNodeID {get; set;}
- bool TypeReference {get; set;}
- Boolean[] TypeReferenceReload {get; set;}
- DOMObject TypeRoot {get;}
- bool Validated {get; set;}
- bool Viewable {get;}
- bool Visible {get; set;}
Events
- ChildBeforeAdd(EventHandler<DOMUpdateChildAdd>)
- ChildBeforeRemove(EventHandler<DOMUpdateChildRemove>)
- Updated(EventHandler<DOMUpdateEventArgs>)
Methods
- void AddClass(string className)
- void BeginMergeUpdate()
- void BeginUpdate()
- bool CheckChild(DOMObject child)
- bool CheckParent(DOMObject parent)
- void ClearChildren()
- DOMObject Clone()
- Gets a deep clone of the current object
- bool Contains<T>(T value, DOMSearchLevel applyTo)
- bool Contains(Func<DOMObject, bool> predicate, DOMSearchLevel applyTo)
- bool Contains<T>(Func<T, bool> predicate, DOMSearchLevel applyTo)
- bool ContainsTypeReference(Guid typeID)
- int Count<T>()
- int Count<T>(DOMSearchLevel applyTo)
- int Count<T>(Func<T, bool> predicate, DOMSearchLevel applyTo)
- int Count(Func<DOMObject, bool> predicate, DOMSearchLevel applyTo)
- DOMObject Detach()
- Detaches the node from its parent and resets the childrens ID's
- bool DiscoverTemplate(Guid templateID)
- bool DiscoverType(Guid typeID)
- void EndMergeUpdate()
- void EndUpdate()
- bool Equals(DOMObject other)
- bool Equals(DOMObject x, DOMObject y)
- DOMObject FindNode(string nodepath, Nullable<Guid> templateID)
- Gets the node that matches the object type node path (Example: 40/23)
- DOMObject First(DOMSearchLevel applyTo)
- T First<T>(DOMSearchLevel applyTo)
- DOMObject First(Func<DOMObject, bool> predicate, DOMSearchLevel applyTo)
- T First<T>(Func<T, bool> predicate, DOMSearchLevel applyTo)
- DOMObject FirstOrDefault(DOMSearchLevel applyTo)
- T FirstOrDefault<T>(DOMSearchLevel applyTo)
- DOMObject FirstOrDefault(Func<DOMObject, bool> predicate, DOMSearchLevel applyTo)
- T FirstOrDefault<T>(Func<T, bool> predicate, DOMSearchLevel applyTo)
- void ForEach(Func<DOMObject, bool> predicate, Action<DOMObject> action, DOMSearchLevel applyTo)
- void ForEach<T>(Func<T, bool> predicate, Action<T> action, DOMSearchLevel applyTo)
- IEnumerable<KeyValuePair<Guid, DOMObject>> GetAttributeKeys()
- TResult GetAttributeValue<TResult>(string attributeName, string propertyName)
- int GetHashCode(DOMObject obj)
- T GetLocalProperty<T>(string key, Func<T> defaultSelector)
- Nullable<Guid> GetNodeIndex(DOMObject baseNode)
- Guid GetNodeIndex2(DOMObject baseNode, int depth)
- IEnumerable<string> GetPropertiesWithAttribute(string attributeName)
- bool HasAttribute(string attributeName, string propertyName)
- bool HasClass(string className)
- bool MatchesSelector(string selector)
- void MergeFrom(DOMObject source, bool restore, DOMDiffOperations type)
- void MergeFromWithTracking(DOMObject source, bool restore)
- IEnumerable<T> OfType<T>(DOMSearchLevel applyTo)
- T ParentOfType<T>()
- DOMObject QuerySelector(string selector)
- IEnumerable<DOMObject> QuerySelectorAll(string selector)
- void ReID()
- void RemoveClass(string className)
- int RemoveLocalProperties(Func<string, bool> keySelector)
- Object RemoveLocalProperty(string key)
- void ResetTypeID(Guid typeID)
- void Revalidate(Func<DOMObject, bool> validationCallback)
- void SetLocalProperty(string key, Object value)
- void ToggleClass(string className)
- string ToString()
- bool TryGetLocalProperty<T>(string key, out T result)
- IEnumerable<DOMObject> Where(Func<DOMObject, bool> predicate, DOMSearchLevel applyTo)
- IEnumerable<T> Where<T>(Func<T, bool> predicate, DOMSearchLevel applyTo)