Package org.exolab.castor.xml

Examples of org.exolab.castor.xml.XMLFieldDescriptor.matches()


    public XMLFieldDescriptor getFieldDescriptor(final String name, final String namespace,
            final NodeType nodeType) {
        if (nodeType == null || nodeType == NodeType.Element) {
            for (int i = 0; i < _elements.length; i++) {
                XMLFieldDescriptor desc = _elements[i];
                if (desc != null && desc.matches(name, namespace)) {
                    return desc;
                }
            }
        }
        return null;
View Full Code Here


    public XMLFieldDescriptor getFieldDescriptor(final String name,
            final String namespace, final NodeType nodeType) {
        if (nodeType == null || nodeType == NodeType.Element) {
            for (int i = 0; i < _elements.length; i++) {
                XMLFieldDescriptor desc = _elements[i];
                if (desc != null && desc.matches(name)) {
                    return desc;
                }
            }
        }
        return null;
View Full Code Here

                if (location != null) {
                    if (!location.equals(desc.getLocationPath()))
                        continue;
                }

                if (desc.matches(name)) {
                      if (!desc.matches(WILDCARD)) {
                          // currently, a 'null' namespace value indicates that the XML artifact in question
                          // either is namespace-less or is part of the default namespace; in both cases,
                          // we currently can not perform namespace comparison.
                          // TODO[wguttmn, 20071205]: add code to handle default namespace declarations rather than checking for null
View Full Code Here

                    if (!location.equals(desc.getLocationPath()))
                        continue;
                }

                if (desc.matches(name)) {
                      if (!desc.matches(WILDCARD)) {
                          // currently, a 'null' namespace value indicates that the XML artifact in question
                          // either is namespace-less or is part of the default namespace; in both cases,
                          // we currently can not perform namespace comparison.
                          // TODO[wguttmn, 20071205]: add code to handle default namespace declarations rather than checking for null
                          if (namespace == null
View Full Code Here

        {
            if (attributes == null) attributes = getAttributeArray();
            for (int i = 0; i < attributes.length; i++) {
                XMLFieldDescriptor desc = attributes[i];
                if (desc == null) continue;
                if (desc.matches(name)) {
                    return desc;
                }
            }
        }
View Full Code Here

            for (int i = 0; i < _elementDescriptors.length; i++) {
                desc = _elementDescriptors[i];
                if (desc == null) {
                    continue;
                }
                if (desc.matches(name, namespace)) {
                    return desc;
                }
            }
        }
       
View Full Code Here

            for (int i = 0; i < _attributeDescriptors.length; i++) {
                desc = _attributeDescriptors[i];
                if (desc == null) {
                    continue;
                }
                if (desc.matches(name, namespace)) {
                    return desc;
                }
            }
        }
       
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.