Tabnine Logo
AttributeDefinition.getInitialValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getInitialValue
method
in
org.eclipse.persistence.internal.codegen.AttributeDefinition

Best Java code snippets using org.eclipse.persistence.internal.codegen.AttributeDefinition.getInitialValue (Showing top 9 results out of 315)

origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Parses the initial value, removing the package name for each type
 * (and adding the appropriate import) if the type is
 * unambiguous.
 */
private void adjustInitialValue(Map typeNameMap) {
  if (getInitialValue() == null) {
    return;
  }
  StringBuilder initialValue = new StringBuilder(getInitialValue());
  Set typeNames = parseForTypeNames(initialValue.toString());
  for (Iterator i = typeNames.iterator(); i.hasNext();) {
    String typeName = (String)i.next();
    String adjustedTypeName = adjustTypeName(typeName, typeNameMap);
    if (!typeName.equals(adjustedTypeName)) {
      int typeNameStartIndex = initialValue.toString().indexOf(typeName);
      while (typeNameStartIndex != -1) {
        initialValue.replace(typeNameStartIndex, typeNameStartIndex + typeName.length(), adjustedTypeName);
        typeNameStartIndex = initialValue.toString().indexOf(typeName);
      }
    }
  }
  setInitialValue(initialValue.toString());
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Parses the initial value, removing the package name for each type
 * (and adding the appropriate import) if the type is
 * unambiguous.
 */
private void adjustInitialValue(Map typeNameMap) {
  if (getInitialValue() == null) {
    return;
  }
  StringBuilder initialValue = new StringBuilder(getInitialValue());
  Set typeNames = parseForTypeNames(initialValue.toString());
  for (Iterator i = typeNames.iterator(); i.hasNext();) {
    String typeName = (String)i.next();
    String adjustedTypeName = adjustTypeName(typeName, typeNameMap);
    if (!typeName.equals(adjustedTypeName)) {
      int typeNameStartIndex = initialValue.toString().indexOf(typeName);
      while (typeNameStartIndex != -1) {
        initialValue.replace(typeNameStartIndex, typeNameStartIndex + typeName.length(), adjustedTypeName);
        typeNameStartIndex = initialValue.toString().indexOf(typeName);
      }
    }
  }
  setInitialValue(initialValue.toString());
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Parses the initial value, removing the package name for each type
 * (and adding the appropriate import) if the type is
 * unambiguous.
 */
private void adjustInitialValue(Map typeNameMap) {
  if (getInitialValue() == null) {
    return;
  }
  StringBuffer initialValue = new StringBuffer(getInitialValue());
  Set typeNames = parseForTypeNames(initialValue.toString());
  for (Iterator i = typeNames.iterator(); i.hasNext();) {
    String typeName = (String)i.next();
    String adjustedTypeName = adjustTypeName(typeName, typeNameMap);
    if (!typeName.equals(adjustedTypeName)) {
      int typeNameStartIndex = initialValue.toString().indexOf(typeName);
      while (typeNameStartIndex != -1) {
        initialValue.replace(typeNameStartIndex, typeNameStartIndex + typeName.length(), adjustedTypeName);
        typeNameStartIndex = initialValue.toString().indexOf(typeName);
      }
    }
  }
  setInitialValue(initialValue.toString());
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Used for calculating imports.  @see org.eclipse.persistence.internal.codegen.ClassDefinition#calculateImports()
 */
protected void putTypeNamesInMap(Map typeNameMap) {
  putTypeNameInMap(getTypeName(), typeNameMap);
  for (Iterator i = parseForTypeNames(getInitialValue()).iterator(); i.hasNext();) {
    putTypeNameInMap((String)i.next(), typeNameMap);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Used for calculating imports.  @see org.eclipse.persistence.internal.codegen.ClassDefinition#calculateImports()
 */
protected void putTypeNamesInMap(Map typeNameMap) {
  putTypeNameInMap(getTypeName(), typeNameMap);
  for (Iterator i = parseForTypeNames(getInitialValue()).iterator(); i.hasNext();) {
    putTypeNameInMap((String)i.next(), typeNameMap);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Used for calculating imports.  @see org.eclipse.persistence.internal.codegen.ClassDefinition#calculateImports()
 */
protected void putTypeNamesInMap(Map typeNameMap) {
  putTypeNameInMap(getTypeName(), typeNameMap);
  for (Iterator i = parseForTypeNames(getInitialValue()).iterator(); i.hasNext();) {
    putTypeNameInMap((String)i.next(), typeNameMap);
  }
}
origin: com.haulmont.thirdparty/eclipselink

  public void writeBody(CodeGenerator generator) {
    generator.writeType(getTypeName());
    generator.writeType(" ");
    generator.write(getName());

    if (getInitialValue() != null) {
      generator.write(" = ");
      generator.write(getInitialValue());
    }

    generator.write(";");
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

  public void writeBody(CodeGenerator generator) {
    generator.writeType(getTypeName());
    generator.writeType(" ");
    generator.write(getName());

    if (getInitialValue() != null) {
      generator.write(" = ");
      generator.write(getInitialValue());
    }

    generator.write(";");
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  public void writeBody(CodeGenerator generator) {
    generator.writeType(getTypeName());
    generator.writeType(" ");
    generator.write(getName());

    if (getInitialValue() != null) {
      generator.write(" = ");
      generator.write(getInitialValue());
    }

    generator.write(";");
  }
}
org.eclipse.persistence.internal.codegenAttributeDefinitiongetInitialValue

Popular methods of AttributeDefinition

  • adjustInitialValue
    Parses the initial value, removing the package name for each type (and adding the appropriate import
  • adjustTypeName
  • adjustTypeNames
  • getName
  • getTypeName
  • parseForTypeNames
  • putTypeNameInMap
  • putTypeNamesInMap
    Used for calculating imports. @see org.eclipse.persistence.internal.codegen.ClassDefinition#calculat
  • setInitialValue
  • write

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • getContentResolver (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Kernel (java.awt.image)
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now