Package org.openbel.framework.common.enums

Examples of org.openbel.framework.common.enums.ValueEncoding


            String encoding = nsService.lookup(p);
            if (encoding == null) {
                return encode(WILDCARD_ENCODING);
            }

            final ValueEncoding ve = getValueEncoding(encoding);
            if (ve == null) {
                return encode(encoding);
            }
            return encode(ve.getDisplayValue());
        } catch (NamespaceSyntaxWarning e) {
            return encode(WILDCARD_ENCODING);
        } catch (IndexingFailure idxf) {
            return encode(WILDCARD_ENCODING);
        }
View Full Code Here


            // If either token is the wildcard, any encoding is valid.
            if (isWildcard(tokens1[1]) || isWildcard(tokens2[1])) {
                return VALID;
            }

            final ValueEncoding ve1 = getValueEncoding(tokens1[1]);
            ValueEncoding ve2 = getValueEncoding(tokens2[1]);
            if (ve2 != null) {
                if (ve1.isAssignableFrom(ve2)) {
                    return VALID;
                }
                return INVALID_ENCODING_ARGUMENT;
View Full Code Here

TOP

Related Classes of org.openbel.framework.common.enums.ValueEncoding

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.