congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AttributeDefinition.setInitialValue
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.eclipse.persistence.internal.codegen.AttributeDefinition.setInitialValue (Showing top 3 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: 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: 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());
}
org.eclipse.persistence.internal.codegenAttributeDefinitionsetInitialValue

Popular methods of AttributeDefinition

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

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Menu (java.awt)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Permission (java.security)
    Legacy security code; do not use.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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