Package org.apache.stanbol.entityhub.core.mapping.ValueConverterFactory

Examples of org.apache.stanbol.entityhub.core.mapping.ValueConverterFactory.TextConverter


            // * xsd:anyURI
            ValueConverter<Reference> uriConverter = new AnyUriConverter();
            addTransformer(uriConverter.getDataType(),
                new ValueConverterTransformerAdapter<Reference>(uriConverter,vf));
            // * entityhub:text
            ValueConverter<Text> literalConverter = new TextConverter();
            addTransformer(literalConverter.getDataType(),
                new ValueConverterTransformerAdapter<Text>(literalConverter,vf));
            // xsd:string (use also the literal converter for xsd:string
            addTransformer(DataTypeEnum.String.getUri(),
                new ValueConverterTransformerAdapter<Text>(literalConverter,vf));
            //Register the default namespaces
View Full Code Here


            // * xsd:anyURI
            ValueConverter<Reference> uriConverter = new AnyUriConverter();
            addTransformer(uriConverter.getDataType(),
                new ValueConverterTransformerAdapter<Reference>(uriConverter,vf));
            // * entityhub:text
            ValueConverter<Text> literalConverter = new TextConverter();
            addTransformer(literalConverter.getDataType(),
                new ValueConverterTransformerAdapter<Text>(literalConverter,vf));
            // xsd:string (use also the literal converter for xsd:string
            addTransformer(DataTypeEnum.String.getUri(),
                new ValueConverterTransformerAdapter<Text>(literalConverter,vf));
            //Register the default namespaces
View Full Code Here

TOP

Related Classes of org.apache.stanbol.entityhub.core.mapping.ValueConverterFactory.TextConverter

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.