Ejemplo n.º 1
0
 /// <summary>
 /// Gets the <paramref name="attributeName"/> name string
 /// </summary>
 /// <param name="attributeName">
 /// The element name
 /// </param>
 /// <returns>
 /// The atomized string of the <paramref name="attributeName"/>
 /// </returns>
 public static string GetAttributeName(RDFAttributeNameTable attributeName)
 {
     return (string)_instance._elementNameCache[(int)attributeName];
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Checks if the given <paramref name="localName"/> equals to the given <paramref name="attributeName"/>.
 /// </summary>
 /// <param name="localName">
 /// Objectified string containing the current local name
 /// </param>
 /// <param name="attributeName">
 /// The element name to check against
 /// </param>
 /// <returns>
 /// True if the <paramref name="localName"/> is <paramref name="attributeName"/>
 /// </returns>
 public static bool IsAttribute(object localName, RDFAttributeNameTable attributeName)
 {
     return ReferenceEquals(localName, _instance._elementNameCache[(int)attributeName]);
 }
 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 RDFWriteAttributeString(NamespacePrefixPair namespacePrefixPair, RDFAttributeNameTable name, string value)
 {
     this._writer.WriteAttributeString(namespacePrefixPair.Prefix, RDFNameTableCache.GetAttributeName(name), namespacePrefixPair.NS, value);
 }
 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 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="attributeName"/>.
 /// </summary>
 /// <param name="localName">
 /// Objectified string containing the current local name
 /// </param>
 /// <param name="attributeName">
 /// The element name to check against
 /// </param>
 /// <returns>
 /// True if the <paramref name="localName"/> is <paramref name="attributeName"/>
 /// </returns>
 public static bool IsAttribute(object localName, RDFAttributeNameTable attributeName)
 {
     return(ReferenceEquals(localName, _instance._elementNameCache[(int)attributeName]));
 }
 /// <summary>
 /// Gets the <paramref name="attributeName"/> name string
 /// </summary>
 /// <param name="attributeName">
 /// The element name
 /// </param>
 /// <returns>
 /// The atomized string of the <paramref name="attributeName"/>
 /// </returns>
 public static string GetAttributeName(RDFAttributeNameTable attributeName)
 {
     return((string)_instance._elementNameCache[(int)attributeName]);
 }