Package org.apache.sis.xml

Examples of org.apache.sis.xml.ValueConverter.toUUID()


    private void setUUID(String id) {
        final Context context = Context.current();
        final ValueConverter converter = Context.converter(context);
        final UUID uuid;
        try {
            uuid = converter.toUUID(context, id);
        } catch (IllegalArgumentException e) {
            // IF we can not store the value as a UUID, store it as a String.
            Context.warningOccured(context, this, ISOMetadata.class, "setUUID", e, false);
            id = CharSequences.trimWhitespaces(id);
            if (id != null && !id.isEmpty()) {
View Full Code Here


                }
                case NonMarshalledAuthority.UUID: {
                    final Context context = Context.current();
                    final ValueConverter converter = Context.converter(context);
                    try {
                        return new SpecializedIdentifier<UUID>(IdentifierSpace.UUID, converter.toUUID(context, code));
                    } catch (IllegalArgumentException e) {
                        parseFailure(context, code, UUID.class, e);
                        break;
                    }
                }
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.