Show / Hide Table of Contents

Class XmlAttribute

An implementation of IAttribute based upon an XML System.Xml.Linq.XAttribute.

Inheritance
System.Object
AttributeBase
XmlAttribute
Implements
IAttribute
Inherited Members
AttributeBase.Node
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: ZptSharp.Dom
Assembly: ZptSharp.Xml.dll
Syntax
public class XmlAttribute : AttributeBase, IAttribute

Constructors

| Improve this Doc View Source

XmlAttribute(XAttribute)

Initializes a new instance of the XmlAttribute class.

Declaration
public XmlAttribute(XAttribute nativeAttribute)
Parameters
Type Name Description
System.Xml.Linq.XAttribute nativeAttribute

Native attribute.

Properties

| Improve this Doc View Source

Name

Gets the attribute local name.

Declaration
public override string Name { get; }
Property Value
Type Description
System.String

The name.

Overrides
AttributeBase.Name
| Improve this Doc View Source

NativeAttribute

Gets the native HAP attribute.

Declaration
public XAttribute NativeAttribute { get; set; }
Property Value
Type Description
System.Xml.Linq.XAttribute

The native attribute.

| Improve this Doc View Source

Value

Gets the attribute value.

Declaration
public override string Value { get; set; }
Property Value
Type Description
System.String

The value.

Overrides
AttributeBase.Value

Methods

| Improve this Doc View Source

IsInNamespace(Namespace)

Gets a value indicating whether or not the current instance is in the specified namespace.

Declaration
public override bool IsInNamespace(Namespace namespace)
Parameters
Type Name Description
Namespace namespace

The namespace.

Returns
Type Description
System.Boolean

true, if the attribute is in the specified namespace, false otherwise.

Overrides
AttributeBase.IsInNamespace(Namespace)
| Improve this Doc View Source

IsNamespaceDeclarationFor(Namespace)

Gets a value indicating whether or not the current instance represents a namespace declaration for the specified namespace.

Declaration
public override bool IsNamespaceDeclarationFor(Namespace namespace)
Parameters
Type Name Description
Namespace namespace

The namespace.

Returns
Type Description
System.Boolean

true, if the attribute is a declaration for the specified namespace, false otherwise.

Overrides
AttributeBase.IsNamespaceDeclarationFor(Namespace)
| Improve this Doc View Source

Matches(AttributeSpec)

Gets a value indicating whether or not the current instance matches a specified attribute.

Declaration
public override bool Matches(AttributeSpec spec)
Parameters
Type Name Description
AttributeSpec spec

The spec to match against.

Returns
Type Description
System.Boolean

true if the current instance matches the specified attribute; false if it does not.

Overrides
AttributeBase.Matches(AttributeSpec)
| Improve this Doc View Source

ToString()

Returns a System.String that represents the current XmlAttribute.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String that represents the current XmlAttribute.

Overrides
System.Object.ToString()

Implements

IAttribute
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX