Class ElementEvent
Event representing a Node from the XML Document.
Inherited Members
Namespace: VDS.RDF.Parsing.Events.RdfXml
Assembly: dotNetRdf.dll
Syntax
public class ElementEvent : BaseRdfXmlEvent, IRdfXmlEvent, IEvent
Constructors
| Improve this Doc View SourceElementEvent(string, string, string, string, PositionInfo)
Creates new Element Event.
Declaration
public ElementEvent(string localname, string ns, string baseUri, string sourceXml, PositionInfo pos)
Parameters
Type | Name | Description |
---|---|---|
string | localname | Local Name of the XML Node. |
string | ns | Namespace Prefix of the XML Node. |
string | baseUri | Base Uri of the XML Node. |
string | sourceXml | Source XML of the XML Node. |
PositionInfo | pos | Position Info. |
ElementEvent(string, string, string, string)
Creates new Element Event.
Declaration
public ElementEvent(string localname, string ns, string baseUri, string sourceXml)
Parameters
Type | Name | Description |
---|---|---|
string | localname | Local Name of the XML Node. |
string | ns | Namespace Prefix of the XML Node. |
string | baseUri | Base Uri of the XML Node. |
string | sourceXml | Source XML of the XML Node. |
ElementEvent(string, string, string, PositionInfo)
Creates a new Element Event.
Declaration
public ElementEvent(string qname, string baseUri, string sourceXml, PositionInfo pos)
Parameters
Type | Name | Description |
---|---|---|
string | qname | QName of the XML Node. |
string | baseUri | Base Uri of the XML Node. |
string | sourceXml | Source XML of the XML Node. |
PositionInfo | pos | Position Info. |
ElementEvent(string, string, string)
Creates a new Element Event.
Declaration
public ElementEvent(string qname, string baseUri, string sourceXml)
Parameters
Type | Name | Description |
---|---|---|
string | qname | QName of the XML Node. |
string | baseUri | Base Uri of the XML Node. |
string | sourceXml | Source XML of the XML Node. |
Properties
| Improve this Doc View SourceAttributes
Gets the Attribute Events.
Declaration
public List<AttributeEvent> Attributes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><AttributeEvent> |
Remarks
These correspond to the Attributes of the XML Node (with some exceptions as defined in the RDF/XML specification).
BaseUri
Gets/Sets the Base Uri of the XML Node.
Declaration
public string BaseUri { get; set; }
Property Value
Type | Description |
---|---|
string |
Children
Gets the Child Element Events.
Declaration
public List<IRdfXmlEvent> Children { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><IRdfXmlEvent> |
Remarks
These correspond to the Child Nodes of the XML Node.
Language
Gets/Sets the Language of this Event.
Declaration
public string Language { get; set; }
Property Value
Type | Description |
---|---|
string |
ListCounter
Gets/Sets the List Counter.
Declaration
public int ListCounter { get; set; }
Property Value
Type | Description |
---|---|
int |
LocalName
Gets the Local Name of this Element Event.
Declaration
public string LocalName { get; }
Property Value
Type | Description |
---|---|
string |
Namespace
Gets the Namespace of this Element Event.
Declaration
public string Namespace { get; }
Property Value
Type | Description |
---|---|
string |
NamespaceAttributes
Gets the Namespace Attribute Events.
Declaration
public List<NamespaceAttributeEvent> NamespaceAttributes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><NamespaceAttributeEvent> |
Remarks
These correspond to all the Namespace Attributes of the XML Node.
ParseType
Gets/Sets the Parse Type for this Event.
Declaration
public RdfXmlParseType ParseType { get; set; }
Property Value
Type | Description |
---|---|
RdfXmlParseType |
QName
Gets the QName of this Element Event.
Declaration
public string QName { get; }
Property Value
Type | Description |
---|---|
string |
Subject
Gets/Sets the Subject Event of this Event.
Declaration
public IRdfXmlEvent Subject { get; set; }
Property Value
Type | Description |
---|---|
IRdfXmlEvent |
Remarks
Will be assigned according to the Parsing rules during the Parsing process and later used to generate a Subject Node.
SubjectNode
Gets/Sets the Subject Node of this Event.
Declaration
public INode SubjectNode { get; set; }
Property Value
Type | Description |
---|---|
INode |
Remarks
Will be created from the Subject at some point during the Parsing process.
Methods
| Improve this Doc View SourceSetUri(UriReferenceEvent, INamespaceMapper)
Method which sets the Uri for this Element Event.
Declaration
public void SetUri(UriReferenceEvent u, INamespaceMapper nsMapper)
Parameters
Type | Name | Description |
---|---|---|
UriReferenceEvent | u | Uri Reference to set Uri from. |
INamespaceMapper | nsMapper | Namespace prefix mappings to use for resolving the QName of this element event. |
Remarks
This can only be used on Elements which are rdf:li and thus need expanding into actual list elements according to List Expansion rules. Attempting to set the Uri on any other Element Event will cause an Error message.
SetUri(UriReferenceEvent)
Method which sets the Uri for this Element Event.
Declaration
public void SetUri(UriReferenceEvent u)
Parameters
Type | Name | Description |
---|---|---|
UriReferenceEvent | u | Uri Reference to set Uri from. |
Remarks
This can only be used on Elements which are rdf:li and thus need expanding into actual list elements according to List Expansion rules. Attempting to set the Uri on any other Element Event will cause an Error message.
ToString()
Gets the String representation of the Event.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |