Package org.modeshape.sequencer.teiid.model.ReferenceResolver

Examples of org.modeshape.sequencer.teiid.model.ReferenceResolver.UnresolvedProperty


                LOGGER.debug("adding mixin {0} to resolved node {1}", mixin, resolved.getName());
            }

            { // add properties
                for (final String propName : unresolved.getProperties().keySet()) {
                    UnresolvedProperty property = unresolved.getProperties().get(propName);
                    assert (property != null);

                    boolean multiValued = property.isMulti();

                    if (multiValued) {
                        Value[] propertyValues = new Value[property.getValues().size()];
                        int i = 0;

                        for (String value : property.getValues()) {
                            propertyValues[i++] = valueFactory.createValue(value);
                        }
                    } else {
                        // single valued
                        final String mappedName = this.medHelper.getMappedPropertyName(propName);
                        resolved.setProperty(mappedName, property.getValue());
                        LOGGER.debug("setting property '{0}' with value '{1}' to resolved node {2}",
                                     propName,
                                     property.getValue(),
                                     resolved.getName());
                    }
                }
            }
View Full Code Here

TOP

Related Classes of org.modeshape.sequencer.teiid.model.ReferenceResolver.UnresolvedProperty

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.