Class ElementEvent
Event representing a Node from the XML Document.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
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)
Creates a new Element Event.
Declaration
public ElementEvent(string qname, string baseUri, string sourceXml)
Parameters
Type | Name | Description |
---|---|---|
System.String | qname | QName of the XML Node. |
System.String | baseUri | Base Uri of the XML Node. |
System.String | sourceXml | Source XML of the XML Node. |
ElementEvent(String, String, String, String)
Creates new Element Event.
Declaration
public ElementEvent(string localname, string ns, string baseUri, string sourceXml)
Parameters
Type | Name | Description |
---|---|---|
System.String | localname | Local Name of the XML Node. |
System.String | ns | Namespace Prefix of the XML Node. |
System.String | baseUri | Base Uri of the XML Node. |
System.String | sourceXml | Source XML of the XML Node. |
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 |
---|---|---|
System.String | localname | Local Name of the XML Node. |
System.String | ns | Namespace Prefix of the XML Node. |
System.String | baseUri | Base Uri of the XML Node. |
System.String | sourceXml | Source XML of the XML Node. |
PositionInfo | pos | Position Info. |
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 |
---|---|---|
System.String | qname | QName of the XML Node. |
System.String | baseUri | Base Uri of the XML Node. |
System.String | sourceXml | Source XML of the XML Node. |
PositionInfo | pos | Position Info. |
Properties
| Improve this Doc View SourceAttributes
Gets the Attribute Events.
Declaration
public List<AttributeEvent> Attributes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<AttributeEvent> |
Remarks
These correspond to the Attributes of the XML Node (with some exceptions as defined in the RDF/XML specification).
|
Improve this Doc
View Source
BaseUri
Gets/Sets the Base Uri of the XML Node.
Declaration
public string BaseUri { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Children
Gets the Child Element Events.
Declaration
public List<IRdfXmlEvent> Children { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<IRdfXmlEvent> |
Remarks
These correspond to the Child Nodes of the XML Node.
|
Improve this Doc
View Source
Language
Gets/Sets the Language of this Event.
Declaration
public string Language { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ListCounter
Gets/Sets the List Counter.
Declaration
public int ListCounter { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
LocalName
Gets the Local Name of this Element Event.
Declaration
public string LocalName { get; }
Property Value
Type | Description |
---|---|
System.String |
Namespace
Gets the Namespace of this Element Event.
Declaration
public string Namespace { get; }
Property Value
Type | Description |
---|---|
System.String |
NamespaceAttributes
Gets the Namespace Attribute Events.
Declaration
public List<NamespaceAttributeEvent> NamespaceAttributes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NamespaceAttributeEvent> |
Remarks
These correspond to all the Namespace Attributes of the XML Node.
|
Improve this Doc
View Source
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 |
---|---|
System.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.
|
Improve this Doc
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
| Improve this Doc View SourceSetUri(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.
|
Improve this Doc
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.
|
Improve this Doc
View Source
ToString()
Gets the String representation of the Event.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()