public class LinkInfo extends DocumentedInfo
Constructor and Description |
---|
LinkInfo()
Constructor.
|
LinkInfo(DocumentationInfo documentation)
Constructor with a single documentation element.
|
LinkInfo(List<DocumentationInfo> documentations)
Constructor with a list of documentation elements.
|
LinkInfo(String documentation)
Constructor with a single documentation element.
|
Modifier and Type | Method and Description |
---|---|
String |
getRelationship()
Returns the relationship attribute value.
|
Reference |
getResourceType()
Returns the reference to the resource type of the linked resource.
|
String |
getReverseRelationship()
Returns the reverse relationship attribute value.
|
void |
setRelationship(String relationship)
Sets the relationship attribute value.
|
void |
setResourceType(Reference resourceType)
Sets the reference to the resource type of the linked resource.
|
void |
setReverseRelationship(String reverseRelationship)
Sets the reverse relationship attribute value.
|
void |
updateNamespaces(Map<String,String> namespaces)
Completes the given map of namespaces with the namespaces used in the
documentation elements.
|
void |
writeElement(XmlWriter writer)
Writes the current object as an XML element using the given SAX writer.
|
getDocumentations, resolveNamespaces, setDocumentation, setDocumentation, setDocumentations
public LinkInfo()
public LinkInfo(DocumentationInfo documentation)
documentation
- A single documentation element.public LinkInfo(List<DocumentationInfo> documentations)
documentations
- The list of documentation elements.public LinkInfo(String documentation)
documentation
- A single documentation element.public String getRelationship()
public Reference getResourceType()
public String getReverseRelationship()
public void setRelationship(String relationship)
relationship
- The relationship attribute value.public void setResourceType(Reference resourceType)
resourceType
- The reference to the resource type of the linked resource.public void setReverseRelationship(String reverseRelationship)
reverseRelationship
- The reverse relationship attribute value.public void updateNamespaces(Map<String,String> namespaces)
DocumentedInfo
updateNamespaces
in class DocumentedInfo
namespaces
- The given map of namespaces to complete.public void writeElement(XmlWriter writer) throws SAXException
writer
- The SAX writer.SAXException
Copyright © 2005–2013. All rights reserved.