org.eclipse.cosmos.rm.repository.internal.reference
Class SMLDocumentReference
java.lang.Object
org.eclipse.cosmos.rm.validation.internal.reference.URIReference
org.eclipse.cosmos.rm.repository.internal.reference.SMLDocumentReference
- All Implemented Interfaces:
- IReferenceExpression
public class SMLDocumentReference
- extends URIReference
An SML document reference. This class can be used to retrieve the
root DOM node of the referenced SML document.
|
Constructor Summary |
SMLDocumentReference(org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository repositor,
java.lang.String reference)
The constructor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SMLDocumentReference
public SMLDocumentReference(org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository repositor,
java.lang.String reference)
throws java.net.URISyntaxException
- The constructor
- Parameters:
repositor - The repositoryreference - The referenced document
- Throws:
java.net.URISyntaxException - If the reference is incorrect
retrieveDocumentDOM
public org.w3c.dom.Node retrieveDocumentDOM()
throws java.net.URISyntaxException,
SMLValidatorUtil.RemoteRetrievalException
- Description copied from class:
URIReference
- Retrieves the document node and returns the result
- Overrides:
retrieveDocumentDOM in class URIReference
- Returns:
- The document node
- Throws:
java.net.URISyntaxException
SMLValidatorUtil.RemoteRetrievalException- See Also:
URIReference.retrieveDocumentDOM()
getBase
public java.net.URI getBase()
- Overrides:
getBase in class URIReference
- Returns:
- the base
setBase
public void setBase(java.net.URI base)
- Overrides:
setBase in class URIReference
- Parameters:
base - the base to set