public abstract class AbstractNtkString 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 |
---|
This abstract class was introduced to support NTK Access components in DDMS 4.1. Those components are no longer a part of DDMS 5.0. |
Nested Elements | |||
---|---|---|---|
|
Attributes | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Validation Rules | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Modifier and Type | Class and Description |
---|---|
static class |
AbstractNtkString.Builder
Abstract Builder for this DDMS component.
|
OUTPUT_TEMPLATES
Modifier | Constructor and Description |
---|---|
protected |
AbstractNtkString(boolean tokenBased,
nu.xom.Element element)
Base constructor which works from a XOM element.
|
protected |
AbstractNtkString(boolean tokenBased,
String name,
String value,
String id,
String idReference,
String qualifier,
SecurityAttributes securityAttributes,
boolean validateNow)
Constructor which builds from raw data.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Test for logical equality.
|
String |
getID()
Accessor for the ID
|
String |
getIDReference()
Accessor for the IDReference
|
String |
getQualifier()
Accessor for the qualifier
|
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 AbstractNtkString(boolean tokenBased, nu.xom.Element element) throws InvalidDDMSException
tokenBased
- true if the child text is an NMTOKEN, false if it's just a stringelement
- the XOM elementInvalidDDMSException
protected AbstractNtkString(boolean tokenBased, String name, String value, String id, String idReference, String qualifier, SecurityAttributes securityAttributes, boolean validateNow) throws InvalidDDMSException
tokenBased
- true if the child text is an NMTOKEN, false if it's just a stringname
- the name of the element without a prefixvalue
- the value of the element's child textid
- the NTK IDidReference
- a reference to an NTK IDqualifier
- an NTK qualifiersecurityAttributes
- the security attributesvalidateNow
- whether to validate immediatelyInvalidDDMSException
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 String getID()
public String getIDReference()
public String getQualifier()
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/