public final class BlockList extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALL
The #all value
|
static String |
EXTENSION
The extension value
|
static String |
RESTRICTION
The restriction value
|
static String |
SUBSTITUTION
The substitution value
|
Constructor and Description |
---|
BlockList()
Creates a new default BlockList.
|
BlockList(String listOfValues)
Creates a new BlockList using the given list of values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasAll()
Returns true if the BlockList contains "#all".
|
boolean |
hasExtension()
Returns true if extension is contained within this BlockList.
|
boolean |
hasRestriction()
Returns true if restriction is contained within this BlockList.
|
boolean |
hasSubstitution()
Returns true if substitution is contained within this BlockList.
|
String |
toString()
Returns the String representation of this BlockList
|
public static final String ALL
public static final String EXTENSION
public static final String RESTRICTION
public static final String SUBSTITUTION
public BlockList()
public BlockList(String listOfValues)
listOfValues
- the list of block valuesIllegalArgumentException
- if the list of values contains
something other than "extension", "restriction", or "substition".public boolean hasAll()
public boolean hasExtension()
public boolean hasRestriction()
public boolean hasSubstitution()
Copyright © 2024. All rights reserved.