Lightweight application program interface (API) for extensible markup language (XML)
    5.
    发明授权
    Lightweight application program interface (API) for extensible markup language (XML) 有权
    用于可扩展标记语言(XML)的轻量级应用程序接口(API)

    公开(公告)号:US07409636B2

    公开(公告)日:2008-08-05

    申请号:US11193567

    申请日:2005-07-29

    IPC分类号: G06F17/00

    CPC分类号: G06F17/2247 G06F17/30932

    摘要: An architecture that leverages support for markup language operations, e.g., extensible markup language (XML) queries, via a lightweight application program interface (API). The API defines an object model that can simplify construction of XML values in languages that do not natively support XML. The novel aspects of the described innovation can enable query languages to be factored into general operations (e.g., mapping, filtering, sorting, and/or projection of functions) on collections on one hand, and a set of domain specific operations (e.g., navigation, construction and modification) on the elements of these collections on another hand. The subject API can support creation of XML data that is node centric (e.g., context-free). Accordingly, nodes do not have to be constructed within the context of a document. Additionally, aspects can enable expression-oriented interface mechanisms as opposed to the imperative statement-oriented style interfaces used in connection with traditional interface mechanisms (e.g., DOM).

    摘要翻译: 通过轻量级应用程序接口(API)利用支持标记语言操作(例如可扩展标记语言(XML)查询)的体系结构。 API定义了一个对象模型,可以简化XML本身不支持XML的语言的构造。 所描述的创新的新颖方面可以使查询语言能够一方面被视为一般操作(例如,功能的映射,过滤,排序和/或投影),以及一组特定于领域的操作(例如,导航 ,建设和修改)另一方面对这些收藏品的要素。 主题API可以支持以节点为中心(例如,无上下文)创建XML数据。 因此,节点不必在文档的上下文中构建。 另外,方面可以实现面向表达式的接口机制,而不是与传统接口机制(例如,DOM)结合使用的面向语句的风格接口。

    Architecture that extends types using extension methods
    10.
    发明授权
    Architecture that extends types using extension methods 有权
    使用扩展方法扩展类型的体系结构

    公开(公告)号:US08370801B2

    公开(公告)日:2013-02-05

    申请号:US12728939

    申请日:2010-03-22

    IPC分类号: G06F9/44

    CPC分类号: G06F8/315

    摘要: Architecture that extends existing types including constructed and sealed types using extension methods. Extension methods are static methods that can be invoked using instance method syntax. Extension methods are declared by specifying the keyword “this” as a modifier on the first parameter of the methods. Extension methods have all the capabilities of regular static methods. In addition, once imported, extension methods can be invoked using instance method syntax. Also disclosed are rules for importing extension methods, and extension method invocations. Extension methods are imported through using-namespace-directives. In addition to importing the types contained in a namespace, a using-namespace-directive imports all extension methods in all static classes in the namespace. In effect, imported extension methods appear as additional methods on the types that are given by their first parameter and have lower precedence than regular instance methods.

    摘要翻译: 使用扩展方法扩展现有类型(包括构造和密封类型)的体系结构。 扩展方法是可以使用实例方法语法调用的静态方法。 通过将关键字this指定为方法的第一个参数的修饰符来声明扩展方法。 扩展方法具有常规静态方法的所有功能。 另外,一旦导入,可以使用实例方法语法来调用扩展方法。 还公开了导入扩展方法和扩展方法调用的规则。 扩展方法通过using-namespace-directives导入。 除了导入命名空间中包含的类型之外,using-namespace-directive会在命名空间中的所有静态类中导入所有扩展方法。 实际上,导入的扩展方法在其第一个参数给出的类型上显示为附加方法,并且具有比常规实例方法更低的优先级。