Show / Hide Table of Contents

Class ElementEvent

Event representing a Node from the XML Document.

Inheritance
object
BaseEvent
BaseRdfXmlEvent
ElementEvent
Implements
IRdfXmlEvent
IEvent
Inherited Members
BaseRdfXmlEvent.SourceXml
BaseEvent.EventType
BaseEvent.Position
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Parsing.Events.RdfXml
Assembly: dotNetRdf.dll
Syntax
public class ElementEvent : BaseRdfXmlEvent, IRdfXmlEvent, IEvent

Constructors

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

ElementEvent(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.

| Edit this page View Source

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.

Properties

| Edit this page View Source

Attributes

Gets the Attribute Events.

Declaration
public List<AttributeEvent> Attributes { get; }
Property Value
Type Description
List<AttributeEvent>
Remarks

These correspond to the Attributes of the XML Node (with some exceptions as defined in the RDF/XML specification).

| Edit this page View Source

BaseUri

Gets/Sets the Base Uri of the XML Node.

Declaration
public string BaseUri { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Children

Gets the Child Element Events.

Declaration
public List<IRdfXmlEvent> Children { get; }
Property Value
Type Description
List<IRdfXmlEvent>
Remarks

These correspond to the Child Nodes of the XML Node.

| Edit this page View Source

Language

Gets/Sets the Language of this Event.

Declaration
public string Language { get; set; }
Property Value
Type Description
string
| Edit this page View Source

ListCounter

Gets/Sets the List Counter.

Declaration
public int ListCounter { get; set; }
Property Value
Type Description
int
| Edit this page View Source

LocalName

Gets the Local Name of this Element Event.

Declaration
public string LocalName { get; }
Property Value
Type Description
string
| Edit this page View Source

Namespace

Gets the Namespace of this Element Event.

Declaration
public string Namespace { get; }
Property Value
Type Description
string
| Edit this page View Source

NamespaceAttributes

Gets the Namespace Attribute Events.

Declaration
public List<NamespaceAttributeEvent> NamespaceAttributes { get; }
Property Value
Type Description
List<NamespaceAttributeEvent>
Remarks

These correspond to all the Namespace Attributes of the XML Node.

| Edit this page View Source

ParseType

Gets/Sets the Parse Type for this Event.

Declaration
public RdfXmlParseType ParseType { get; set; }
Property Value
Type Description
RdfXmlParseType
| Edit this page View Source

QName

Gets the QName of this Element Event.

Declaration
public string QName { get; }
Property Value
Type Description
string
| Edit this page View Source

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.

| Edit this page View Source

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

| Edit this page View Source

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.

| Edit this page View Source

SetUri(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.

| Edit this page View Source

ToString()

Gets the String representation of the Event.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Implements

IRdfXmlEvent
IEvent

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • ElementEvent(string, string, string)
    • ElementEvent(string, string, string, string)
    • ElementEvent(string, string, string, string, PositionInfo)
    • ElementEvent(string, string, string, PositionInfo)
  • Properties
    • Attributes
    • BaseUri
    • Children
    • Language
    • ListCounter
    • LocalName
    • Namespace
    • NamespaceAttributes
    • ParseType
    • QName
    • Subject
    • SubjectNode
  • Methods
    • SetUri(UriReferenceEvent)
    • SetUri(UriReferenceEvent, INamespaceMapper)
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX