Package com.buschmais.jqassistant.plugin.java.impl.store.descriptor

Examples of com.buschmais.jqassistant.plugin.java.impl.store.descriptor.PropertyDescriptor


        propertyFileDescriptor.setFileName(filename);
        Properties properties = new Properties();
        properties.load(streamSource.getInputStream());
        for (String name : properties.stringPropertyNames()) {
            String value = properties.getProperty(name);
            PropertyDescriptor propertyDescriptor = store.create(PropertyDescriptor.class);
            propertyDescriptor.setName(name);
            propertyDescriptor.setValue(value);
            propertyFileDescriptor.getProperties().add(propertyDescriptor);
        }
        return propertyFileDescriptor;
    }
View Full Code Here


        TypeDescriptor typeDescriptor = descriptorResolverFactory.getTypeDescriptorResolver().resolve(clazz);
        persistenceUnitDescriptor.getContains().add(typeDescriptor);
      }
      // Create model unit properties
      for (Property property : persistenceUnit.getProperties().getProperty()) {
        PropertyDescriptor propertyDescriptor = store.create(PropertyDescriptor.class);
        propertyDescriptor.setName(property.getName());
        propertyDescriptor.setValue(property.getValue());
        persistenceUnitDescriptor.getProperties().add(propertyDescriptor);
      }
      // Add model unit to model descriptor
      persistenceDescriptor.getContains().add(persistenceUnitDescriptor);
    }
View Full Code Here

TOP

Related Classes of com.buschmais.jqassistant.plugin.java.impl.store.descriptor.PropertyDescriptor

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.