Package org.springframework.ide.eclipse.beans.core.internal.model

Examples of org.springframework.ide.eclipse.beans.core.internal.model.BeansTypedString


    IModelElement[] ccwiPropertyMapEntries = DozerPluginUtils.getPossibleCCIMappingForMappingFile(bean);
   
    if (ccwiPropertyMapEntries != null) {
      for (IModelElement beansMapEntry : ccwiPropertyMapEntries) {
        BeansMapEntry entry = (BeansMapEntry)beansMapEntry;
        BeansTypedString key = (BeansTypedString)entry.getKey();
 
        if (key.getString() != null && !key.getString().equals("")) {
          DozerJavaCompletionProposal newProposal = new DozerJavaCompletionProposal(
                                  "\""+key.getString(),
                                  offset,
                                  len,
                                  0,
                                  BeansModelImages.getImage(entry),
                                  key.getString(),
                                  (IContextInformation)null,
                                  0,
                                  true,
                                  bean);
          contentAssistRequest.addProposal(newProposal);
View Full Code Here


      return null;
   
    //find the custom-converter-id property
      for (IModelElement beansMapEntry : ccwiPropertyMapEntries) {
        BeansMapEntry entry = (BeansMapEntry)beansMapEntry;
      BeansTypedString key = (BeansTypedString)entry.getKey();
      if (key.getString().equals(customConverterId)) {
        return entry;
      }
    }
     
      return null;
View Full Code Here

    // Iterate over the properties and represent them as namespace-syntax
    // attributes
    for (IBeanProperty currProperty : bean.getProperties()) {
      Object value = currProperty.getValue();
      if (value instanceof BeansTypedString) {
        BeansTypedString propertyValue = (BeansTypedString) value;
        String propertyName = currProperty.getElementName();
        jndiObjectFactoryElement.setAttribute(toHyphenFormat(propertyName), propertyValue.getString());
      }
    }

    return jndiObjectFactoryElement;
  }
View Full Code Here

    return false;
  }

  private boolean propertyValuesEqual(Object value1, Object value2) {
    if (value1 instanceof BeansTypedString && value2 instanceof BeansTypedString) {
      BeansTypedString beansTypedString1 = (BeansTypedString) value1;
      BeansTypedString beansTypedString2 = (BeansTypedString) value2;

      if (beansTypedString1.getString().equals(beansTypedString2.getString())) {
        return true;
      }
    }
    else if (value1 instanceof BeanReference && value2 instanceof BeanReference) {
      BeanReference beanReference1 = (BeanReference) value1;
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.beans.core.internal.model.BeansTypedString

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.