Package xbird.xquery.type

Examples of xbird.xquery.type.ItemType


                throw new IllegalStateException("Unexpected occurrence: " + occ);
        }
    }

    public XQItemType getItemType() {
        final ItemType primeType = type_.prime();
        return new BXQItemType(primeType);
    }
View Full Code Here


    public boolean acceptNodeType(NodeType expected) {
        if(!(expected instanceof DocumentTest)) {
            return false;
        }
        if(nodeType != null) {
            ItemType targetNodeType = ((DocumentTest) expected).getNodeType();
            if(!nodeType.accepts(targetNodeType)) {
                return false;
            }
        }
        return true;
View Full Code Here

        return null;
    }

    @Override
    public int getXQJBaseType() throws XQException {
        final ItemType basetype = nodeType;
        if(basetype == null) {
            throw new XQException("Illegal item kind: " + toString(), "err:XQJxxxx");
        }
        return basetype.getXQJBaseType();
    }
View Full Code Here

    AtomicType | KindTest | <"item" "(" ")">
    [114] AtomicType   ::= QName
    ************************************************************************/
    final public Type parseSequenceType() throws ParseException, XQueryException {
        boolean isAtomic = false;
        final ItemType itemType;
        Occurrence occurrenceIndicator = Occurrence.OCC_EXACTLY_ONE;
        switch(jj_nt.kind) {
            case EmptySequence:
                currentToken = jj_consume_token(EmptySequence);
                {
View Full Code Here

    /************************************************************************
    [123] DocumentTest ::= "document-node" "(" (ElementTest | SchemaElementTest)? ")"
    ************************************************************************/
    final public DocumentTest parseDocumentTest() throws ParseException, XQueryException {
        ItemType itemType = null;
        switch(jj_nt.kind) {
            case DocumentLpar:
                currentToken = jj_consume_token(DocumentLpar);
                break;
            case DocumentLparForKindTest:
View Full Code Here

     AtomicType | KindTest | <"item" "(" ")">
     [114] AtomicType   ::= QName
     ************************************************************************/
    final public Type parseSequenceType() throws ParseException, XQueryException {
        boolean isAtomic = false;
        final ItemType itemType;
        Occurrence occurrenceIndicator = Occurrence.OCC_EXACTLY_ONE;
        switch(jj_nt.kind) {
            case EmptySequence:
                currentToken = jj_consume_token(EmptySequence);
                {
View Full Code Here

    /************************************************************************
     [123] DocumentTest ::= "document-node" "(" (ElementTest | SchemaElementTest)? ")"
     ************************************************************************/
    final public DocumentTest parseDocumentTest() throws ParseException, XQueryException {
        ItemType itemType = null;
        switch(jj_nt.kind) {
            case DocumentLpar:
                currentToken = jj_consume_token(DocumentLpar);
                break;
            case DocumentLparForKindTest:
View Full Code Here

TOP

Related Classes of xbird.xquery.type.ItemType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.