EntityRange.Entity

Represents an entity in the XML document.

Note that the type determines which properties can be used, and it can determine whether functions which an Entity or EntityRange is passed to are allowed to be called. Each function lists which EntityTypes are allowed, and it is an error to call them with any other EntityType.

Public Imports

std.typecons
public import std.typecons : Tuple;

Members

Aliases

Attribute
alias Attribute = Tuple!(SliceOfR, "name", SliceOfR, "value", TextPos, "pos")

The exact instantiation of $(PHOBOS_REF Tuple, std, typecons) that attributes returns a range of.

Properties

attributes
auto attributes [@property getter]

Returns a lazy range of attributes for a start tag where each attribute is represented as a
$(PHOBOS_REF_ALTTEXT Tuple, Tuple, std, typecons)!( $(LREF2 SliceOfR, EntityRange), $(D_STRING "name"), $(LREF2 SliceOfR, EntityRange), $(D_STRING "value"), $(LREF TextPos), $(D_STRING "pos")).

name
SliceOfR name [@property getter]

Gives the name of this Entity.

pos
TextPos pos [@property getter]

The position in the the original text where the entity starts.

type
EntityType type [@property getter]

The EntityType for this Entity.

Meta