public class Visibility extends Element
Modifier and Type | Class and Description |
---|---|
static class |
Visibility.Value
Value.
|
Modifier and Type | Field and Description |
---|---|
static ElementKey<java.lang.Void,Visibility> |
KEY
The key for this element.
|
static AttributeKey<java.lang.String> |
VALUE
Value.
|
Constructor and Description |
---|
Visibility()
Constructs an instance using the default key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getValue()
Returns the value.
|
int |
hashCode() |
boolean |
hasValue()
Returns whether it has the value.
|
Visibility |
lock()
Locks this element.
|
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
|
Visibility |
setValue(java.lang.String value)
Sets the value.
|
addElement, addElement, addElement, clear, createElement, createElement, getAttributeCount, getAttributeIterator, getAttributeIterator, getAttributeValue, getAttributeValue, getDefaultKey, getElement, getElement, getElementCount, getElementId, getElementIterator, getElementIterator, getElementKey, getElements, getElements, getElementSet, getElementSet, getElementValue, getElementValue, getTextValue, getTextValue, hasAttribute, hasAttribute, hasElement, hasElement, hasTextValue, isLocked, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, toString, visit
public static final ElementKey<java.lang.Void,Visibility> KEY
public static final AttributeKey<java.lang.String> VALUE
public static void registerMetadata(MetadataRegistry registry)
public Visibility lock()
Element
public java.lang.String getValue()
public Visibility setValue(java.lang.String value)
value
- value or null
to resetpublic boolean hasValue()