private void processPropertyValues(LogicalComponent<?> component, PhysicalSpringComponent springComponent) { for (LogicalProperty property : component.getAllProperties().values()) { String name = property.getName(); boolean many = property.isMany(); if (property.getXmlValue() != null) { Document document = property.getXmlValue(); ComponentType componentType = component.getDefinition().getImplementation().getComponentType(); QName type = componentType.getProperties().get(property.getName()).getType(); PhysicalProperty physicalProperty = PhysicalProperty.Builder.newBuilder(name).xmlValue(document).many(many).type(type).build(); springComponent.setProperty(physicalProperty); } else if (property.getInstanceValue() != null) { Object value = property.getInstanceValue(); PhysicalProperty physicalProperty = PhysicalProperty.Builder.newBuilder(name).instanceValue(value).many(many).build(); springComponent.setProperty(physicalProperty); } } }
private void processPropertyValues(LogicalComponent<?> component, PhysicalSpringComponent springComponent) { for (LogicalProperty property : component.getAllProperties().values()) { String name = property.getName(); boolean many = property.isMany(); if (property.getXmlValue() != null) { Document document = property.getXmlValue(); ComponentType componentType = component.getDefinition().getImplementation().getComponentType(); QName type = componentType.getProperties().get(property.getName()).getType(); PhysicalProperty physicalProperty = PhysicalProperty.Builder.newBuilder(name).xmlValue(document).many(many).type(type).build(); springComponent.setProperty(physicalProperty); } else if (property.getInstanceValue() != null) { Object value = property.getInstanceValue(); PhysicalProperty physicalProperty = PhysicalProperty.Builder.newBuilder(name).instanceValue(value).many(many).build(); springComponent.setProperty(physicalProperty); } } }
private void processPropertyValues(LogicalComponent<?> component, PhysicalWebComponent physical) { for (LogicalProperty property : component.getAllProperties().values()) { String name = property.getName(); boolean many = property.isMany(); if (property.getXmlValue() != null) { Document document = property.getXmlValue(); PhysicalProperty physicalProperty = PhysicalProperty.Builder.newBuilder(name).xmlValue(document).many(many).build(); physical.setProperty(physicalProperty); } else if (property.getInstanceValue() != null) { Object value = property.getInstanceValue(); PhysicalProperty physicalProperty = PhysicalProperty.Builder.newBuilder(name).instanceValue(value).many(many).build(); physical.setProperty(physicalProperty); } } }
public void processPropertyValues(LogicalComponent<?> component, PhysicalPojoComponent pojoComponent) { for (LogicalProperty property : component.getAllProperties().values()) { String name = property.getName(); boolean many = property.isMany(); boolean required = property.isRequired(); if (property.getKey() != null) { PhysicalProperty physicalProperty = PhysicalProperty.Builder.newBuilder(name).key(property.getKey()).required(required).many(many).build(); pojoComponent.setProperty(physicalProperty); } else if (property.getXmlValue() != null) { Document document = property.getXmlValue(); PhysicalProperty physicalProperty = PhysicalProperty.Builder.newBuilder(name).xmlValue(document).required(required).many(many).build(); pojoComponent.setProperty(physicalProperty); } else if (property.getInstanceValue() != null) { Object value = property.getInstanceValue(); PhysicalProperty physicalProperty = PhysicalProperty.Builder.newBuilder(name).instanceValue(value).required(required).many(many).build(); pojoComponent.setProperty(physicalProperty); } } } }
public void processPropertyValues(LogicalComponent<?> component, PhysicalPojoComponent pojoComponent) { for (LogicalProperty property : component.getAllProperties().values()) { String name = property.getName(); boolean many = property.isMany(); boolean required = property.isRequired(); if (property.getKey() != null) { PhysicalProperty physicalProperty = PhysicalProperty.Builder.newBuilder(name).key(property.getKey()).required(required).many(many).build(); pojoComponent.setProperty(physicalProperty); } else if (property.getXmlValue() != null) { Document document = property.getXmlValue(); PhysicalProperty physicalProperty = PhysicalProperty.Builder.newBuilder(name).xmlValue(document).required(required).many(many).build(); pojoComponent.setProperty(physicalProperty); } else if (property.getInstanceValue() != null) { Object value = property.getInstanceValue(); PhysicalProperty physicalProperty = PhysicalProperty.Builder.newBuilder(name).instanceValue(value).required(required).many(many).build(); pojoComponent.setProperty(physicalProperty); } } } }