Package org.apache.sis.internal.jaxb.gco

Examples of org.apache.sis.internal.jaxb.gco.GO_CharacterString


            if (!codeListValue.isEmpty() && Context.isFlagSet(context, Context.SUBSTITUTE_LANGUAGE)) {
                /*
                 * Marshal the locale as a <gco:CharacterString> instead than <LanguageCode>,
                 * using the user-supplied anchors if any.
                 */
                final GO_CharacterString string = CharSequenceAdapter.wrap(locale, codeListValue);
                if (string != null) {
                    return new LanguageCode(string);
                }
            }
            final Locale marshalLocale = (context != null) ? context.getLocale() : null;
View Full Code Here


            if (!codeListValue.isEmpty() && Context.isFlagSet(context, Context.SUBSTITUTE_COUNTRY)) {
                /*
                 * Marshal the locale as a <gco:CharacterString> instead than <Country>,
                 * using the user-supplied anchors if any.
                 */
                final GO_CharacterString string = CharSequenceAdapter.wrap(locale, codeListValue);
                if (string != null) {
                    return new Country(string);
                }
            }
            String codeSpace = null;
View Full Code Here

     * @return The wrapper for the given MIME type, or {@code null}.
     */
    @Override
    public GO_CharacterString marshal(final String value) {
        final Context context = Context.current();
        final GO_CharacterString wrapper = CharSequenceAdapter.wrap(context, value, value);
        if (wrapper != null) {
            if (!Context.isFlagSet(context, Context.SUBSTITUTE_MIMETYPE)) {
                wrapper.type = GO_CharacterString.MIME_TYPE;
            }
            return wrapper;
View Full Code Here

TOP

Related Classes of org.apache.sis.internal.jaxb.gco.GO_CharacterString

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.