public abstract class AbstractQualifierValue extends AbstractBaseComponent
In DDMS | 2.0 | 3.0 | 3.1 | 4.0.1/4.1 | 5.0 |
Extensions of this class are generally expected to be immutable, and the underlying XOM element MUST be set before the component is used.
History |
---|
In DDMS 5.0, |
Nested Elements | |||
---|---|---|---|
|
Attributes | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Validation Rules | |||
---|---|---|---|
|
Modifier and Type | Class and Description |
---|---|
static class |
AbstractQualifierValue.Builder
Abstract Builder for this DDMS component.
|
OUTPUT_TEMPLATES
Modifier | Constructor and Description |
---|---|
protected |
AbstractQualifierValue()
This implicit superconstructor does nothing.
|
protected |
AbstractQualifierValue(nu.xom.Element element,
boolean useClassicAttributeNames)
Base constructor
|
protected |
AbstractQualifierValue(String name,
String qualifier,
String value,
boolean validateNow,
boolean useClassicAttributeNames)
Constructor which builds from raw data.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Test for logical equality.
|
String |
getQualifier()
Accessor for the value of the qualifier attribute (referred to in some DDMS 5.0 components as a "codespace")
|
String |
getQualifierName()
Accessor for the name of the qualifier attribute
|
String |
getValue()
Accessor for the value of the value attribute (referred to in some DDMS 5.0 components as a "code")
|
String |
getValueName()
Accessor for the name of the value attribute
|
int |
hashCode()
Returns a hashcode for the component.
|
addDdms40Warning, addJson, addJson, addJson, addJson, addWarning, addWarnings, buildHTMLTextOutput, buildHTMLTextOutput, buildIndex, buildPrefix, getAttributeValue, getAttributeValue, getChild, getChildTextAsDouble, getDDMSVersion, getHTMLTextOutput, getJSONObject, getLocatorSuffix, getName, getNamespace, getNestedComponents, getPrefix, getQualifiedName, getSecurityAttributes, getValidationWarnings, getXOMElement, getXOMElementCopy, requireAtLeastVersion, requireAtMostVersion, setXOMElement, toHTML, toJSON, toString, toText, toXML, validate, validateWarnings
protected AbstractQualifierValue() throws InvalidDDMSException
InvalidDDMSException
protected AbstractQualifierValue(nu.xom.Element element, boolean useClassicAttributeNames) throws InvalidDDMSException
element
- the XOM element representing this componentuseClassicAttributeNames
- true for "qualifier/value" and false for "codespace/code".InvalidDDMSException
protected AbstractQualifierValue(String name, String qualifier, String value, boolean validateNow, boolean useClassicAttributeNames) throws InvalidDDMSException
name
- the name of the element without a prefixqualifier
- the value of the qualifier attributevalue
- the value of the value attributevalidateNow
- true to validate the component immediately. Because Source entities have additional fields
they should not be validated in the superconstructor.useClassicAttributeNames
- true for "qualifier/value" and false for "codespace/code".InvalidDDMSException
public boolean equals(Object obj)
AbstractBaseComponent
The base case tests against the name value and namespaceURI, as well as any child components classified as "nested components" and any security attributes. Extending classes may require additional rules for equality. This case automatically includes any nested components or security attributes.
equals
in class AbstractBaseComponent
Object.equals(Object)
public int hashCode()
AbstractBaseComponent
This automatically includes any nested components or security attributes.
hashCode
in class AbstractBaseComponent
Object.hashCode()
public String getQualifierName()
public String getValueName()
public String getQualifier()
public String getValue()
Copyright 2010 - 2019 by Brian Uri!
Generated on 09/15/2016 12:36 PM
https://ddmsence.urizone.net/