public abstract class AbstractSimpleString extends AbstractBaseComponent
Description
, Title
, and Subtitle
.
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 |
---|
None. |
Nested Elements | |||
---|---|---|---|
|
Attributes | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Validation Rules | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Modifier and Type | Class and Description |
---|---|
static class |
AbstractSimpleString.Builder
Abstract Builder for this DDMS component.
|
OUTPUT_TEMPLATES
Modifier | Constructor and Description |
---|---|
protected |
AbstractSimpleString(nu.xom.Element element,
boolean validateNow)
Base constructor which works from a XOM element.
|
protected |
AbstractSimpleString(String name,
String value,
SecurityAttributes attributes,
boolean validateNow)
Constructor which builds from raw data.
|
protected |
AbstractSimpleString(String prefix,
String namespace,
String name,
String value,
SecurityAttributes attributes,
boolean validateNow)
Constructor which builds from raw data.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Test for logical equality.
|
SecurityAttributes |
getSecurityAttributes()
Accessor for the Security Attributes.
|
String |
getValue()
Accessor for the child text of the description.
|
int |
hashCode()
Returns a hashcode for the component.
|
protected void |
validate()
Base case for validation.
|
addDdms40Warning, addJson, addJson, addJson, addJson, addWarning, addWarnings, buildHTMLTextOutput, buildHTMLTextOutput, buildIndex, buildPrefix, getAttributeValue, getAttributeValue, getChild, getChildTextAsDouble, getDDMSVersion, getHTMLTextOutput, getJSONObject, getLocatorSuffix, getName, getNamespace, getNestedComponents, getPrefix, getQualifiedName, getValidationWarnings, getXOMElement, getXOMElementCopy, requireAtLeastVersion, requireAtMostVersion, setXOMElement, toHTML, toJSON, toString, toText, toXML, validateWarnings
protected AbstractSimpleString(nu.xom.Element element, boolean validateNow) throws InvalidDDMSException
element
- the XOM elementvalidateNow
- true if the component should be validated hereInvalidDDMSException
protected AbstractSimpleString(String name, String value, SecurityAttributes attributes, boolean validateNow) throws InvalidDDMSException
name
- the name of the element without a prefixvalue
- the value of the element's child textattributes
- the security attributesvalidateNow
- true if the component should be validated hereInvalidDDMSException
protected AbstractSimpleString(String prefix, String namespace, String name, String value, SecurityAttributes attributes, boolean validateNow) throws InvalidDDMSException
prefix
- the XML prefixnamespace
- the namespace of the elementname
- the name of the element without a prefixvalue
- the value of the element's child textattributes
- the security attributesvalidateNow
- true if the component should be validated hereInvalidDDMSException
protected void validate() throws InvalidDDMSException
AbstractBaseComponent
validate
in class AbstractBaseComponent
InvalidDDMSException
AbstractBaseComponent.validate()
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 getValue()
public SecurityAttributes getSecurityAttributes()
getSecurityAttributes
in interface IDDMSComponent
getSecurityAttributes
in class AbstractBaseComponent
Copyright 2010 - 2019 by Brian Uri!
Generated on 09/15/2016 12:36 PM
https://ddmsence.urizone.net/