DOMObject

From Virtual World Web Wiki
Revision as of 13:29, 11 October 2016 by Spark5 (Talk | contribs) (Documentation for the DOMObject class)

Jump to: navigation, search

The base class for all DOM node types

Properties

bool Accessable
DOMAttributeCache AttributeCache
DOMAttributeSet Attributes
Nullable<Guid> BaseTypeID
DOMObjectCollection Children
string Class
ReferenceContract Contract
DOMDocument Document
bool Enabled
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
Nullable<Guid> InstanceIndex
DOMObject InstanceRoot
Nullable<Guid> InstanceTypeID
bool IsInReference
bool IsInstanceRoot
bool IsTemplateRoot
bool IsTopLevelReference
bool IsTypeRoot
Guid MergeID
bool MergeLocked
Guid NodeID
string NodePath
Gets a path which can be used to locate a specific node in the DOM using the FindNode method
IEnumerable<DOMAttribute> ObjectAttributes
DOMObject Parent
DOMPropertyCollection Properties
DOMProtectionFlags ProtectionFlags
Guid RecordID
The ID used to uniquely identify an object. RecordIDs are generated when a new DOMObject is created.
DOMDocument RootDocument
DateTime ServerTime
List<string> SystemPropertyNames
Object Tag
Guid TemplateID
DOMObject TemplateRoot
bool Temporary
string Title
bool Transient
Guid TypeID
Nullable<Guid> TypeIndex
int TypeNodeID
bool TypeReference
Boolean[] TypeReferenceReload
DOMObject TypeRoot
bool Validated
bool Viewable
bool Visible

Events

ChildBeforeAdd(EventHandler<DOMUpdateChildAdd>)
ChildBeforeRemove(EventHandler<DOMUpdateChildRemove>)
Updated(EventHandler<DOMUpdateEventArgs>)

Methods

void add_ChildBeforeAdd(EventHandler<DOMUpdateChildAdd> value)
void add_ChildBeforeRemove(EventHandler<DOMUpdateChildRemove> value)
void add_Updated(EventHandler<DOMUpdateEventArgs> value)
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 remove_ChildBeforeAdd(EventHandler<DOMUpdateChildAdd> value)
void remove_ChildBeforeRemove(EventHandler<DOMUpdateChildRemove> value)
void remove_Updated(EventHandler<DOMUpdateEventArgs> value)
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)