Package dev.getelements.elements.sdk
Enum Class ElementType
- All Implemented Interfaces:
Serializable
,Comparable<ElementType>
,Constable
Specifies the type of the
Element
, which has largely to do with its loading semantics.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe standard default type.A type which is typically from the main application'sClassLoader
(usually the System ClassLoader) where multipleElementDefinition
may exist -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementType
Returns the enum constant of this class with the specified name.static ElementType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ISOLATED_CLASSPATH
The standard default type. Comes from specificClassLoader
and is isolated. Only oneElementDefinition
may exist in the classpath of theElement
to support proper isolation and will cause an exception at load time when trying to build one.ElementLoaderFactory.getIsolatedLoader(Attributes, ClassLoader, ElementLoaderFactory.ClassLoaderConstructor)
-
SHARED_CLASSPATH
A type which is typically from the main application'sClassLoader
(usually the System ClassLoader) where multipleElementDefinition
may exist
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-