DOMObject
From Virtual World Web Wiki
Revision as of 13:24, 11 October 2016 by Spark5 (Talk | contribs) (Documentation for the DOMObject class)
The base class for all DOM node types
Properties
- Guid RecordID
- The ID used to uniquely identify an object. RecordIDs are generated when a new DOMObject is created.
- string NodePath
- Gets a path which can be used to locate a specific node in the DOM using the FindNode method
- long ID
- 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
- Guid MergeID
- DOMAttributeSet Attributes
- bool Accessable
- bool Viewable
- Object Tag
- DOMObject Parent
- Guid TypeID
- int TypeNodeID
- bool Temporary
- bool Transient
- bool Enabled
- DOMProtectionFlags ProtectionFlags
- DOMAttributeCache AttributeCache
- bool Validated
- Guid TemplateID
- DateTime ServerTime
- DOMObjectCollection Children
- DOMPropertyCollection Properties
- List<string> SystemPropertyNames
- DOMDocument Document
- DOMDocument RootDocument
- string Title
- bool Visible
- string Class
- IEnumerable<DOMAttribute> ObjectAttributes
- bool TypeReference
- Boolean[] TypeReferenceReload
- DOMObject TypeRoot
- DOMObject InstanceRoot
- bool IsTypeRoot
- DOMObject TemplateRoot
- bool IsTemplateRoot
- bool IsInReference
- bool IsTopLevelReference
- Guid NodeID
- Nullable<Guid> BaseTypeID
- Nullable<Guid> InstanceTypeID
- Nullable<Guid> InstanceIndex
- Nullable<Guid> TypeIndex
- bool IsInstanceRoot
- bool MergeLocked
- ReferenceContract Contract
Events
- Updated(EventHandler<DOMUpdateEventArgs>)
- ChildBeforeRemove(EventHandler<DOMUpdateChildRemove>)
- ChildBeforeAdd(EventHandler<DOMUpdateChildAdd>)
Methods
- Guid GetNodeIndex2(DOMObject baseNode, int depth)
- IEnumerable<KeyValuePair<Guid, DOMObject>> GetAttributeKeys()
- bool ContainsTypeReference(Guid typeID)
- IEnumerable<DOMObject> QuerySelectorAll(string selector)
- DOMObject QuerySelector(string selector)
- bool MatchesSelector(string selector)
- void AddClass(string className)
- void RemoveClass(string className)
- void ToggleClass(string className)
- bool HasClass(string className)
- 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 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)
- bool Contains<T>(T value, DOMSearchLevel applyTo)
- bool Contains(Func<DOMObject, bool> predicate, DOMSearchLevel applyTo)
- bool Contains<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<T> OfType<T>(DOMSearchLevel applyTo)
- IEnumerable<DOMObject> Where(Func<DOMObject, bool> predicate, DOMSearchLevel applyTo)
- IEnumerable<T> Where<T>(Func<T, bool> predicate, DOMSearchLevel applyTo)
- DOMObject FindNode(string nodepath, Nullable<Guid> templateID)
- Gets the node that matches the object type node path (Example: 40/23)
- int GetHashCode(DOMObject obj)
- bool Equals(DOMObject other)
- bool DiscoverType(Guid typeID)
- bool DiscoverTemplate(Guid templateID)
- bool CheckParent(DOMObject parent)
- bool CheckChild(DOMObject child)
- void ReID()
- T GetLocalProperty<T>(string key, Func<T> defaultSelector)
- void SetLocalProperty(string key, Object value)
- int RemoveLocalProperties(Func<string, bool> keySelector)
- Object RemoveLocalProperty(string key)
- bool TryGetLocalProperty<T>(string key, out T result)
- void add_Updated(EventHandler<DOMUpdateEventArgs> value)
- void remove_Updated(EventHandler<DOMUpdateEventArgs> value)
- void add_ChildBeforeRemove(EventHandler<DOMUpdateChildRemove> value)
- void remove_ChildBeforeRemove(EventHandler<DOMUpdateChildRemove> value)
- void add_ChildBeforeAdd(EventHandler<DOMUpdateChildAdd> value)
- void remove_ChildBeforeAdd(EventHandler<DOMUpdateChildAdd> value)
- IEnumerable<string> GetPropertiesWithAttribute(string attributeName)
- bool HasAttribute(string attributeName, string propertyName)
- TResult GetAttributeValue<TResult>(string attributeName, string propertyName)
- void BeginMergeUpdate()
- void EndMergeUpdate()
- void BeginUpdate()
- void EndUpdate()
- void ResetTypeID(Guid typeID)
- DOMObject Detach()
- Detaches the node from its parent and resets the childrens ID's
- void Revalidate(Func<DOMObject, bool> validationCallback)
- string ToString()
- T ParentOfType<T>()
- void ClearChildren()
- DOMObject Clone()
- Gets a deep clone of the current object
- void MergeFrom(DOMObject source, bool restore, DOMDiffOperations type)
- void MergeFromWithTracking(DOMObject source, bool restore)
- Guid get_NodeID()
- void set_NodeID(Guid value)
- Nullable<Guid> get_BaseTypeID()
- void set_BaseTypeID(Nullable<Guid> value)
- Nullable<Guid> get_InstanceTypeID()
- void set_InstanceTypeID(Nullable<Guid> value)
- Nullable<Guid> get_InstanceIndex()
- Nullable<Guid> get_TypeIndex()
- bool get_IsInstanceRoot()
- Nullable<Guid> GetNodeIndex(DOMObject baseNode)
- bool get_MergeLocked()
- ReferenceContract get_Contract()
- Guid get_RecordID()
- string get_NodePath()
- long get_ID()
- Guid get_MergeID()
- void set_MergeID(Guid value)
- DOMAttributeSet get_Attributes()
- bool get_Accessable()
- bool get_Viewable()
- Object get_Tag()
- void set_Tag(Object value)
- DOMObject get_Parent()
- Guid get_TypeID()
- void set_TypeID(Guid value)
- int get_TypeNodeID()
- void set_TypeNodeID(int value)
- bool get_Temporary()
- void set_Temporary(bool value)
- bool get_Transient()
- void set_Transient(bool value)
- bool get_Enabled()
- void set_Enabled(bool value)
- DOMProtectionFlags get_ProtectionFlags()
- void set_ProtectionFlags(DOMProtectionFlags value)
- DOMAttributeCache get_AttributeCache()
- void set_AttributeCache(DOMAttributeCache value)
- bool get_Validated()
- void set_Validated(bool value)
- Guid get_TemplateID()
- void set_TemplateID(Guid value)
- DateTime get_ServerTime()
- DOMObjectCollection get_Children()
- DOMPropertyCollection get_Properties()
- List<string> get_SystemPropertyNames()
- DOMDocument get_Document()
- DOMDocument get_RootDocument()
- string get_Title()
- void set_Title(string value)
- bool get_Visible()
- void set_Visible(bool value)
- string get_Class()
- void set_Class(string value)
- IEnumerable<DOMAttribute> get_ObjectAttributes()
- bool get_TypeReference()
- void set_TypeReference(bool value)
- Boolean[] get_TypeReferenceReload()
- void set_TypeReferenceReload(Boolean[] value)
- DOMObject get_TypeRoot()
- DOMObject get_InstanceRoot()
- bool get_IsTypeRoot()
- void set_IsTypeRoot(bool value)
- DOMObject get_TemplateRoot()
- bool get_IsTemplateRoot()
- bool get_IsInReference()
- bool get_IsTopLevelReference()
- bool Equals(DOMObject x, DOMObject y)