public HandlerAxis(IHandlerAxis handler, TraversingAxis axis) { if (handler == null) { throw new ArgumentNullException(nameof(handler)); } _handler = handler; _axis = axis; }
public static IHandlerAxis DescendantReverse(this IHandlerAxis handler) { return(handler == null ? null : new HandlerAxis(handler, TraversingAxis.DescendantReverse)); }
public static IHandlerAxis Ancestor(this IHandlerAxis handler) { return(handler == null ? null : new HandlerAxis(handler, TraversingAxis.Ancestor)); }
public static IHandlerAxis Sibling(this IHandlerAxis handler) { return(handler == null ? null : new HandlerAxis(handler, TraversingAxis.Sibling)); }
public static IHandlerAxis Child(this IHandlerAxis handler) { return(handler == null ? null : new HandlerAxis(handler, TraversingAxis.Child)); }
public static IHandlerAxis Root(this IHandlerAxis handler) { return(handler == null ? null : new HandlerAxis(handler, TraversingAxis.Root)); }
public static IHandler Publish(this IHandlerAxis handler) { return(handler.SelfDescendant().Notify()); }
public static IHandlerAxis Axis( this IHandlerAxis handler, TraversingAxis axis) { return(handler == null ? null : new HandlerAxis(handler, axis)); }
public static IHandlerAxis SelfDescendant(this IHandlerAxis handler) { return(handler == null ? null : new HandlerAxis(handler, TraversingAxis.SelfOrDescendant)); }