Interface IAttribute
Abstraction for a DOM attribute.
Namespace: ZptSharp.Dom
Assembly: ZptSharp.Abstractions.dll
Syntax
public interface IAttribute
Properties
| Improve this Doc View SourceName
Gets the attribute name, including any relevant prefix.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The name. |
Node
Gets or sets the node upon which this attribute appears.
Declaration
INode Node { get; set; }
Property Value
Type | Description |
---|---|
INode | The node. |
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 SourceIsInNamespace(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 |
|
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 |
|
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. |