public final class RevisionRecall extends AbstractBaseComponent
A revisionRecall element will either contain free child text describing the recall, or a set of link and details elements.
| Strictness |
|---|
|
DDMSence is stricter than the specification in the following ways:
|
| Nested Elements |
|---|
ddms:link: Links to further information about the recall (0-many optional), implemented as a Linkddms:details: Further details about the recall (0-many optional), implemented as a Details |
| Attributes |
|---|
|
ddms:revisionID: a sequential integer for the recall (required) ddms:revisionType: an enumerated type for the recall (required) network: the name of the network, taken from a token list (optional) otherNetwork: an alternate network name (optional) XLinkAttributes: If set, the xlink:type attribute must have a fixed value of "resource".SecurityAttributes: The classification and ownerProducer attributes are required.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
RevisionRecall.Builder
Builder for this DDMS component.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
NO_NAMESPACE
The namespace of the network attributes
|
static String |
NO_PREFIX
The prefix of the network attributes
|
| Constructor and Description |
|---|
RevisionRecall(nu.xom.Element element)
Constructor for creating a component from a XOM Element
|
RevisionRecall(List<Link> links,
List<Details> details,
Integer revisionID,
String revisionType,
String network,
String otherNetwork,
XLinkAttributes xlinkAttributes,
SecurityAttributes securityAttributes)
Constructor for creating a component from raw data, based on links and details.
|
RevisionRecall(String value,
Integer revisionID,
String revisionType,
String network,
String otherNetwork,
XLinkAttributes xlinkAttributes,
SecurityAttributes securityAttributes)
Constructor for creating a component from raw data, based on child text.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Test for logical equality.
|
List<Details> |
getDetails()
Accessor for the list of Details.
|
List<Link> |
getLinks()
Accessor for the list of Links.
|
static String |
getName(DDMSVersion version)
Accessor for the element name of this component, based on the version of DDMS used
|
protected List<IDDMSComponent> |
getNestedComponents()
Accessor for a collection of nested components.
|
String |
getNetwork()
Accessor for the network attribute.
|
String |
getOtherNetwork()
Accessor for the otherNetwork attribute.
|
String |
getOutput(boolean isHTML,
String prefix,
String suffix)
Renders this component as HTML or Text, with an optional prefix to nest it.
|
Integer |
getRevisionID()
Accessor for the revisionID attribute.
|
String |
getRevisionType()
Accessor for the revisionType attribute.
|
SecurityAttributes |
getSecurityAttributes()
Accessor for the Security Attributes.
|
String |
getValue()
Accessor for the value of the child text.
|
XLinkAttributes |
getXLinkAttributes()
Accessor for the XDetails Attributes.
|
int |
hashCode()
Returns a hashcode for the component.
|
protected void |
validate()
Validates the component.
|
protected void |
validateWarnings()
Validates any conditions that might result in a warning.
|
addDdms40Warning, addWarning, addWarnings, buildIndex, buildOutput, buildOutput, buildPrefix, getAttributeValue, getAttributeValue, getChild, getChildTextAsDouble, getDDMSVersion, getLocatorSuffix, getName, getNamespace, getPrefix, getQualifiedName, getStringAsDouble, getValidationWarnings, getXOMElement, getXOMElementCopy, requireVersion, setXOMElement, toHTML, toString, toText, toXMLpublic static final String NO_PREFIX
public static final String NO_NAMESPACE
public RevisionRecall(nu.xom.Element element)
throws InvalidDDMSException
element - the XOM element representing thisInvalidDDMSException - if any required information is missing or malformedpublic RevisionRecall(List<Link> links, List<Details> details, Integer revisionID, String revisionType, String network, String otherNetwork, XLinkAttributes xlinkAttributes, SecurityAttributes securityAttributes) throws InvalidDDMSException
links - associated links (optional)details - associated details (optional)revisionID - integer ID for this recall (required)revisionType - type of revision (required)network - the network (optional)otherNetwork - another network (optional)xlinkAttributes - simple xlink attributes (optional)securityAttributes - security attributes (required)InvalidDDMSException - if any required information is missing or malformedpublic RevisionRecall(String value,
Integer revisionID,
String revisionType,
String network,
String otherNetwork,
XLinkAttributes xlinkAttributes,
SecurityAttributes securityAttributes)
throws InvalidDDMSException
value - the child text describing this revision (required)revisionID - integer ID for this recall (required)revisionType - type of revision (required)network - the network (optional)otherNetwork - another network (optional)xlinkAttributes - simple xlink attributes (optional)securityAttributes - security attributes (required)InvalidDDMSException - if any required information is missing or malformedprotected void validate()
throws InvalidDDMSException
| Rules |
|---|
|
|
validate in class AbstractBaseComponentInvalidDDMSExceptionAbstractBaseComponent.validate()protected void validateWarnings()
| Rules |
|---|
|
|
validateWarnings in class AbstractBaseComponentpublic String getOutput(boolean isHTML,
String prefix,
String suffix)
AbstractBaseComponentgetOutput in class AbstractBaseComponentisHTML - true for HTML, false for Text.prefix - an optional prefix to put on each name.suffix - an optional suffix to append to each name, such as an index.AbstractBaseComponent.getOutput(boolean, String, String)protected List<IDDMSComponent> getNestedComponents()
AbstractBaseComponentgetNestedComponents in class AbstractBaseComponentAbstractBaseComponent.getNestedComponents()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 static String getName(DDMSVersion version)
version - the DDMSVersionpublic List<Link> getLinks()
public List<Details> getDetails()
public String getValue()
public Integer getRevisionID()
public String getRevisionType()
public String getNetwork()
public String getOtherNetwork()
public XLinkAttributes getXLinkAttributes()
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/