Top Description Inners Fields Constructors Methods
org.eclipse.persistence.internal.core.queries

public Class CoreAttributeConverter

extends Object
Class Inheritance
Imports
java.util.ArrayDeque, org.eclipse.persistence.internal.helper.StringHelper

INTERNAL: AttributeGroup attribute names converter.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum
CoreAttributeConverter.ConvertState

Path convert state machine internal states.

Field Summary

Modifier and TypeField and Description
private static final String
DOT

String containing '.'.

Constructor Summary

AccessConstructor and Description
private
CoreAttributeConverter()

INTERNAL: This class is just an envelope for static methods so no instances are allowed.

Method Summary

Modifier and TypeMethod and Description
public static final String[]

Returns:

An array of Strings computed by splitting provided nameOrPath[0] argument around '.' character.
convert
(final String...
String to be split.
nameOrPath
)

INTERNAL: Splits given nameOrPath[0] argument around '.' character when nameOrPath.length is equal to 1.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DOTback to summary
private static final String DOT

String containing '.'.

Constructor Detail

CoreAttributeConverterback to summary
private CoreAttributeConverter()

INTERNAL: This class is just an envelope for static methods so no instances are allowed.

Method Detail

convertback to summary
public static final String[] convert(final String... nameOrPath) throws IllegalArgumentException

INTERNAL: Splits given nameOrPath[0] argument around '.' character when nameOrPath.length is equal to 1. Arrays of nameOrPath containing more than one element are only validated an passed without any changes. Zero length arrays are considered as invalid.

Parameters
nameOrPath:String[]

String to be split.

Returns:String[]

An array of Strings computed by splitting provided nameOrPath[0] argument around '.' character.

Annotations
@SuppressWarnings:fallthrough
Exceptions
IllegalArgumentException:
If nameOrPath argument is null or any element to be returned after split is null, empty or contains whitespace at the beginning or end.
org.eclipse.persistence.internal.core.queries back to summary

private final Enum CoreAttributeConverter.ConvertState

extends Enum<CoreAttributeConverter.ConvertState>
Class Inheritance

Path convert state machine internal states.

Field Summary

Modifier and TypeField and Description
public static final CoreAttributeConverter.ConvertState
CH

After regular path character received in path element.

public static final CoreAttributeConverter.ConvertState
DOT

Initial state or after path elements separator received.

public static final CoreAttributeConverter.ConvertState
SP

After space in the middle of path (at least one regular character received in path element).

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static CoreAttributeConverter.ConvertState
public static CoreAttributeConverter.ConvertState[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CHback to summary
public static final CoreAttributeConverter.ConvertState CH

After regular path character received in path element.

DOTback to summary
public static final CoreAttributeConverter.ConvertState DOT

Initial state or after path elements separator received.

SPback to summary
public static final CoreAttributeConverter.ConvertState SP

After space in the middle of path (at least one regular character received in path element).

Constructor Detail

ConvertStateback to summary
private ConvertState()

Method Detail

valueOfback to summary
public static CoreAttributeConverter.ConvertState valueOf(String name)
valuesback to summary
public static CoreAttributeConverter.ConvertState[] values()