예제 #1
0
 /// <summary>
 /// Checks if the given <paramref name="localName"/> equals to the given <paramref name="elementName"/>.
 /// </summary>
 /// <param name="localName">
 /// Objectified string containing the current local name
 /// </param>
 /// <param name="elementName">
 /// The element name to check against
 /// </param>
 /// <returns>
 /// True if the <paramref name="localName"/> is <paramref name="elementName"/>
 /// </returns>
 public static bool IsElement(object localName, RDFElementNameTable elementName)
 {
     object objB = _instance._elementNameCache[(int)elementName];
     return ReferenceEquals(localName, objB);
 }
 public void RDFWriteElement(NamespacePrefixPair namespacePrefix, RDFElementNameTable element, string value)
 {
     this._writer.WriteElementString(namespacePrefix.Prefix, RDFNameTableCache.GetElementName(element), null, value);
 }
예제 #3
0
 /// <summary>
 /// Gets the <paramref name="elementName"/> name string
 /// </summary>
 /// <param name="elementName">
 /// The element name
 /// </param>
 /// <returns>
 /// The atomized string of the <paramref name="elementName"/>
 /// </returns>
 public static string GetElementName(RDFElementNameTable elementName)
 {
     return (string)_instance._elementNameCache[(int)elementName];
 }
 public void RDFWriteStartElement(NamespacePrefixPair ns, RDFElementNameTable element)
 {
     this._writer.WriteStartElement(ns.Prefix, RDFNameTableCache.GetElementName(element), ns.NS);
 }
 public void RDFWriteStartElement(string prefix, RDFElementNameTable element)
 {
     this._writer.WriteStartElement(prefix, RDFNameTableCache.GetElementName(element), null);
 }
 public void RDFWriteElementWithStringTag(NamespacePrefixPair NS, NamespacePrefixPair NSAtt, RDFElementNameTable Element, RDFAttributeNameTable Attribute, string Text, string Constant)
 {
     this.RDFWriteStartElement(NS, Element);
     this.RDFWriteAttributeString(NSAtt, Attribute, Constant);
     this.RDFWriteString(Text);
     this.RDFWriteEndElement();
 }
 public void RDFWriteElementAttributeWithStringTag(NamespacePrefixPair ElementNS, NamespacePrefixPair AttributeNS, RDFElementNameTable Element, RDFAttributeNameTable Attribute, string Constant, string Value)
 {
     this.RDFWriteStartElement(ElementNS, Element);
     this.RDFWriteAttributeString(AttributeNS, Attribute, Constant);
     this.RDFWriteString(Value);
     this.RDFWriteEndElement();
 }
 public void RDFWriteElementWithStringTag(NamespacePrefixPair NS, RDFElementNameTable Element, string Text)
 {
     this.RDFWriteStartElement(NS, Element);
     this.RDFWriteString(Text);
     this.RDFWriteEndElement();
 }
 public void RDFWriteDescriptionTag(NamespacePrefixPair NS, RDFElementNameTable Element, RDFAttributeNameTable Attribute, string Locale, string Value)
 {
     this.RDFWriteStartElement(NS, Element);
     this.RDFWriteAttributeString(this.Namespaces.XML, Attribute, Locale);
     this.RDFWriteString(Value);
     this.RDFWriteEndElement();
 }
 public void RDFWriteGeneralTag(NamespacePrefixPair NS, RDFElementNameTable Element, RDFAttributeNameTable Attribute, string Constant)
 {
     this.RDFWriteStartElement(NS, Element);
     this.RDFWriteAttributeString(NS, Attribute, Constant);
     this.RDFWriteEndElement();
 }
        /// <summary>
        /// Checks if the given <paramref name="localName"/> equals to the given <paramref name="elementName"/>.
        /// </summary>
        /// <param name="localName">
        /// Objectified string containing the current local name
        /// </param>
        /// <param name="elementName">
        /// The element name to check against
        /// </param>
        /// <returns>
        /// True if the <paramref name="localName"/> is <paramref name="elementName"/>
        /// </returns>
        public static bool IsElement(object localName, RDFElementNameTable elementName)
        {
            object objB = _instance._elementNameCache[(int)elementName];

            return(ReferenceEquals(localName, objB));
        }
 /// <summary>
 /// Gets the <paramref name="elementName"/> name string
 /// </summary>
 /// <param name="elementName">
 /// The element name
 /// </param>
 /// <returns>
 /// The atomized string of the <paramref name="elementName"/>
 /// </returns>
 public static string GetElementName(RDFElementNameTable elementName)
 {
     return((string)_instance._elementNameCache[(int)elementName]);
 }