Show / Hide Table of Contents

Class AttributeBase

Abstract base class for an IAttribute, containing functionality which is neutral to the specific implementation.

Inheritance
System.Object
AttributeBase
AngleSharpAttribute
HapAttribute
XmlAttribute
Implements
IAttribute
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)
System.Object.ToString()
Namespace: ZptSharp.Dom
Assembly: ZptSharp.Abstractions.dll
Syntax
public abstract class AttributeBase : IAttribute

Properties

| Improve this Doc View Source

Name

Gets the attribute name, including any relevant prefix.

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

The name.

| Improve this Doc View Source

Node

Gets the node upon which this attribute appears.

Declaration
public virtual INode Node { get; set; }
Property Value
Type Description
INode

The node.

| Improve this Doc View Source

Value

Gets the attribute value.

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

The 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 abstract 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.

| 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 abstract 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.

| Improve this Doc View Source

Matches(AttributeSpec)

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

Declaration
public abstract 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.

Implements

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