public class ExtendedProperty extends Element
Modifier and Type | Class and Description |
---|---|
static class |
ExtendedProperty.Realm
Limit on who may see and modify this extended property.
|
Modifier and Type | Field and Description |
---|---|
static ElementKey<java.lang.Void,ExtendedProperty> |
KEY
The key for this element.
|
static AttributeKey<java.lang.String> |
NAME
Name of the property expressed as a URI.
|
static AttributeKey<java.lang.String> |
REALM
Limit on who may see and modify this extended property.
|
static AttributeKey<java.lang.String> |
VALUE
Property value.
|
Modifier | Constructor and Description |
---|---|
|
ExtendedProperty()
Constructs an instance using the default key.
|
protected |
ExtendedProperty(ElementKey<?,? extends ExtendedProperty> key)
Subclass constructor, allows subclasses to supply their own element key.
|
protected |
ExtendedProperty(ElementKey<?,? extends ExtendedProperty> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Returns the name of the property expressed as a URI.
|
java.lang.String |
getRealm()
Returns the limit on who may see and modify this extended property.
|
java.lang.String |
getValue()
Returns the property value.
|
int |
hashCode() |
boolean |
hasName()
Returns whether it has the name of the property expressed as a URI.
|
boolean |
hasRealm()
Returns whether it has the limit on who may see and modify this extended
property.
|
boolean |
hasValue()
Returns whether it has the property value.
|
ExtendedProperty |
lock()
Locks this element.
|
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
|
ExtendedProperty |
setName(java.lang.String name)
Sets the name of the property expressed as a URI.
|
ExtendedProperty |
setRealm(java.lang.String realm)
Sets the limit on who may see and modify this extended property.
|
ExtendedProperty |
setValue(java.lang.String value)
Sets the property value.
|
adapt, adapt, addElement, addElement, addElement, clear, createElement, createElement, eq, 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, narrow, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, sameClassAs, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, toString, validate, visit
public static final ElementKey<java.lang.Void,ExtendedProperty> KEY
public static final AttributeKey<java.lang.String> NAME
public static final AttributeKey<java.lang.String> REALM
public static final AttributeKey<java.lang.String> VALUE
public ExtendedProperty()
protected ExtendedProperty(ElementKey<?,? extends ExtendedProperty> key)
protected ExtendedProperty(ElementKey<?,? extends ExtendedProperty> key, Element source)
Element
instance. Will use the given ElementKey
as the key
for the element. This constructor is used when adapting from one element
key to another. You cannot call this constructor directly, instead use
Element.createElement(ElementKey, Element)
.key
- The key to use for this element.source
- source elementpublic static void registerMetadata(MetadataRegistry registry)
public ExtendedProperty lock()
Element
public java.lang.String getName()
public ExtendedProperty setName(java.lang.String name)
name
- name of the property expressed as a URI or null
to
resetpublic boolean hasName()
public java.lang.String getRealm()
public ExtendedProperty setRealm(java.lang.String realm)
realm
- limit on who may see and modify this extended property or
null
to resetpublic boolean hasRealm()
public java.lang.String getValue()
public ExtendedProperty setValue(java.lang.String value)
value
- property value or null
to resetpublic boolean hasValue()