Enum DefaultAccountAddressChildrenVisibilityType
- java.lang.Object
-
- java.lang.Enum<DefaultAccountAddressChildrenVisibilityType>
-
- com.broadleafcommerce.customer.domain.type.DefaultAccountAddressChildrenVisibilityType
-
- All Implemented Interfaces:
Serializable
,Comparable<DefaultAccountAddressChildrenVisibilityType>
public enum DefaultAccountAddressChildrenVisibilityType extends Enum<DefaultAccountAddressChildrenVisibilityType>
The DefaultAccountAddressChildrenVisibilityType is used to represent the types of visibility to child accounts forAccountAddress
This is typically for B2B use cases where theAccountAddress.getType()
isDefaultB2BAccountAddressTypes.SHIP_TO
orDefaultB2BAccountAddressTypes.BILL_TO
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isNotVisible(String visibility)
static boolean
isVisible(String visibility)
static DefaultAccountAddressChildrenVisibilityType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DefaultAccountAddressChildrenVisibilityType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO
public static final DefaultAccountAddressChildrenVisibilityType NO
Represents a account address that is not to be shared with child accounts
-
YES
public static final DefaultAccountAddressChildrenVisibilityType YES
Represents an account address to be shared with child accounts
-
-
Method Detail
-
values
public static DefaultAccountAddressChildrenVisibilityType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DefaultAccountAddressChildrenVisibilityType c : DefaultAccountAddressChildrenVisibilityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultAccountAddressChildrenVisibilityType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
isVisible
public static boolean isVisible(String visibility)
-
isNotVisible
public static boolean isNotVisible(String visibility)
-
-