Package org.apache.stanbol.cmsadapter.servicesapi.model.web

Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.ObjectFactory


     *
     * @param ontModel
     * @return
     */
    public static ConnectionInfo getConnectionInfo(OntModel ontModel) {
        ObjectFactory of = new ObjectFactory();
        ConnectionInfo ci = null;
        Resource ciResource = ontModel.getResource(CMSAdapterVocabulary.CONNECTION_INFO_RES.getURI());

        try {
            ci = of.createConnectionInfo();
            ci.setConnectionType(ciResource.getProperty(CMSAdapterVocabulary.CONNECTION_TYPE_PROP)
                    .getString());
            ci.setPassword(ciResource.getProperty(CMSAdapterVocabulary.CONNECTION_PASSWORD_PROP).getString());
            ci.setUsername(ciResource.getProperty(CMSAdapterVocabulary.CONNECTION_USERNAME_PROP).getString());
            ci.setWorkspaceName(ciResource.getProperty(CMSAdapterVocabulary.CONNECTION_WORKSPACE_PROP)
View Full Code Here

TOP

Related Classes of org.apache.stanbol.cmsadapter.servicesapi.model.web.ObjectFactory

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.