public abstract class AbstractNtkString extends AbstractBaseComponent
Extensions of this class are generally expected to be immutable, and the underlying XOM element MUST be set before the component is used.
| Attributes |
|---|
|
ntk:id: A unique XML identifier (optional) ntk:IDReference: A cross-reference to a unique identifier (optional) ntk:qualifier: A user-defined property within an element for general purpose processing used with block objects to provide supplemental information over and above that conveyed by the element name (optional) SecurityAttributes: The classification and
ownerProducer attributes are required.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractNtkString.Builder
Abstract Builder for this DDMS component.
|
| 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()
Validates the component.
|
addDdms40Warning, addWarning, addWarnings, buildIndex, buildOutput, buildOutput, buildPrefix, getAttributeValue, getAttributeValue, getChild, getChildTextAsDouble, getDDMSVersion, getLocatorSuffix, getName, getNamespace, getNestedComponents, getOutput, getPrefix, getQualifiedName, getStringAsDouble, getValidationWarnings, getXOMElement, getXOMElementCopy, requireVersion, setXOMElement, toHTML, toString, toText, toXML, validateWarningsprotected 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 elementInvalidDDMSExceptionprotected 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 ID (optional)idReference - a reference to an NTK ID (optional)qualifier - an NTK qualifier (optional)securityAttributes - the security attributesvalidateNow - whether to validate immediatelyInvalidDDMSExceptionprotected void validate()
throws InvalidDDMSException
| Rules |
|---|
|
|
validate in class AbstractBaseComponentInvalidDDMSExceptionAbstractBaseComponent.validate()public boolean equals(Object obj)
AbstractBaseComponentThe 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 AbstractBaseComponentObject.equals(Object)public int hashCode()
AbstractBaseComponentThis automatically includes any nested components or security attributes.
hashCode in class AbstractBaseComponentObject.hashCode()public String getValue()
public String getID()
public String getIDReference()
public String getQualifier()
public SecurityAttributes getSecurityAttributes()
getSecurityAttributes in interface IDDMSComponentgetSecurityAttributes in class AbstractBaseComponentCopyright 2010 - 2013 by Brian Uri!
Generated on 12/15/2013 10:22 AM
http://ddmsence.urizone.net/