Show / Hide Table of Contents

Interface IAttribute

Abstraction for a DOM attribute.

Namespace: ZptSharp.Dom
Assembly: ZptSharp.Abstractions.dll
Syntax
public interface IAttribute

Properties

| Improve this Doc View Source

Name

Gets the attribute name, including any relevant prefix.

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

The name.

| Improve this Doc View Source

Node

Gets or sets the node upon which this attribute appears.

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

The node.

| Improve this Doc View Source

Value

Gets or sets the attribute value.

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

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