- All Implemented Interfaces:
Serializable,Comparable<VisibilityModifier>,Constable
Java class for VisibilityModifier.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="VisibilityModifier">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="DEFAULT"/>
<enumeration value="NONE"/>
<enumeration value="PUBLIC"/>
<enumeration value="INTERNAL"/>
<enumeration value="PRIVATE"/>
</restriction>
</simpleType>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe generated visibility modifier is the default for the target language to producepublicvisibility (explicitpublicin Java, nothing in Kotlin, Scala).An explicitinternalvisibility modifier is generated, where supported (orpublic, otherwise).No visibility modifier is generated.Aprivatevisibility modifier is generated.An explicitpublicvisibility modifier is generated, where supported (no modifier is generated in Scala). -
Method Summary
Modifier and TypeMethodDescriptionstatic VisibilityModifiervalue()static VisibilityModifierReturns the enum constant of this class with the specified name.static VisibilityModifier[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
The generated visibility modifier is the default for the target language to producepublicvisibility (explicitpublicin Java, nothing in Kotlin, Scala). -
NONE
No visibility modifier is generated. -
PUBLIC
An explicitpublicvisibility modifier is generated, where supported (no modifier is generated in Scala). -
INTERNAL
An explicitinternalvisibility modifier is generated, where supported (orpublic, otherwise). -
PRIVATE
Aprivatevisibility modifier is generated. This is useful only forForcedType, not as a global configuration.
-
-
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
-
value
-
fromValue
-