Examples of EOAttributeSuffixProvider


Examples of org.objectstyle.wolips.debug.logicalstructure.type.eoaccess.EOAttributeSuffixProvider

  public void appendKeysToVariablesAndMethodsArray(int offset, String[] keys, SuffixProvider suffixProvider, String[][] variablesAndMethods) {
    for (int i = 0; i < keys.length; i++) {
      String keyWithSuffix = keys[i];
      if (suffixProvider != null) {
        if (suffixProvider instanceof EOAttributeSuffixProvider) {
          EOAttributeSuffixProvider attributeSuffixProvider = (EOAttributeSuffixProvider) suffixProvider;
          keyWithSuffix = keyWithSuffix + attributeSuffixProvider.getSuffix(keys[i], this);
        } else {
          keyWithSuffix = keyWithSuffix + suffixProvider.getSuffix();
        }
      }
      String[] variableAndMethod = new String[] { keyWithSuffix, "return valueForKey(\"" + keys[i] + "\");" };
View Full Code Here

Examples of org.objectstyle.wolips.debug.logicalstructure.type.eoaccess.EOAttributeSuffixProvider

  public void appendKeyPathsToVariablesAndMethodsArray(int offset, String[] keys, SuffixProvider suffixProvider, String[][] variablesAndMethods) {
    for (int i = 0; i < keys.length; i++) {
      String keyWithSuffix = keys[i];
      if (suffixProvider != null) {
        if (suffixProvider instanceof EOAttributeSuffixProvider) {
          EOAttributeSuffixProvider attributeSuffixProvider = (EOAttributeSuffixProvider) suffixProvider;
          keyWithSuffix = keyWithSuffix + attributeSuffixProvider.getSuffix(keys[i], this);
        } else {
          keyWithSuffix = keyWithSuffix + suffixProvider.getSuffix();
        }
      }
      String[] variableAndMethod = new String[] { keyWithSuffix, "return valueForKeyPath(\"" + keys[i] + "\");" };
View Full Code Here

Examples of org.objectstyle.wolips.debug.logicalstructure.type.eoaccess.EOAttributeSuffixProvider

    IJavaClassType classType = this.getIJavaClassType(value);
    String[][] variablesAndMethods = new String[length][2];
    int offset = 0;
    this.appendKeyPathsToVariablesAndMethodsArray(offset, coolKeys, null, variablesAndMethods);
    offset = offset + coolKeys.length;
    this.appendKeyPathsToVariablesAndMethodsArray(offset, attributeKeys, new EOAttributeSuffixProvider("classDescription.entity"), variablesAndMethods);
    offset = offset + attributeKeys.length;
    this.appendKeyPathsToVariablesAndMethodsArray(offset, toOneRelationshipKeys, new SuffixProvider(" (to one)"), variablesAndMethods);
    offset = offset + toOneRelationshipKeys.length;
    this.appendKeyPathsToVariablesAndMethodsArray(offset, toManyRelationshipKeys, new SuffixProvider(" (to many)"), variablesAndMethods);
    JavaLogicalStructure javaLogicalStructure = new JavaLogicalStructure(classType.getName(), true, null, "bla", variablesAndMethods);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.