public enum Visibility extends Enum<Visibility>
Soy templates have two visibility-related attributes, the older boolean-valued private
attribute and the newer string-valued visibility attribute. visibility was
introduced to address inconsistencies in the behavior of private.
| Modifier and Type | Method and Description |
|---|---|
static Visibility |
forAttributeValue(String attributeValue) |
String |
getAttributeValue() |
static Set<String> |
getAttributeValues() |
static Visibility |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Visibility[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Visibility PRIVATE
public static final Visibility PUBLIC
public static Visibility[] values()
for (Visibility c : Visibility.values()) System.out.println(c);
public static Visibility valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getAttributeValue()
public static Visibility forAttributeValue(String attributeValue)