|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.publish.ReferenceEntry
public class ReferenceEntry
Represents a reference entry that can then be added to a result package for publishing. A reference entry simply identifies (references) some data or file (such as a web page) that is external to the package. See Constructing a Result Package to Publish for an example of how this class is used.
Field Summary |
---|
Fields inherited from class com.sas.services.publish.AbstractEntry |
---|
BINARY_COMPAT_VERSION, CATALOG_COMPAT_VERSION, DATASET_COMPAT_VERSION, DEFAULT_ENTRY_VERSION, HTML_COMPAT_VERSION, MDDB_COMPAT_VERSION, NESTEDPACKAGE_COMPAT_VERSION, REFERENCE_COMPAT_VERSION, SQLVIEW_COMPAT_VERSION, TEXT_COMPAT_VERSION, VIEWER_COMPAT_VERSION |
Fields inherited from interface com.sas.services.publish.ReferenceEntryInterface |
---|
HTML_REFERENCE, URL_REFERENCE |
Constructor Summary | |
---|---|
|
ReferenceEntry()
Creates a default instance. |
protected |
ReferenceEntry(java.lang.Class theClass)
Creates a new reference entry. |
|
ReferenceEntry(java.lang.String reference,
java.lang.String referenceType)
Creates a new reference entry. |
Method Summary | |
---|---|
java.lang.String |
getReference()
Returns the reference string. |
java.lang.String |
getReferenceType()
Returns the type of reference. |
void |
setReference(java.lang.String reference)
Sets the reference string. |
void |
setReferenceType(java.lang.String referenceType)
Sets type of reference. |
Methods inherited from class com.sas.services.publish.AbstractEntry |
---|
getDescription, getEntityKey, getNameValuePairs, getURL, isClosed, isReadOnly, sameEntity, setClosed, setDescription, setEntityKey, setNameValuePairs, setRead, throwExceptionIfClosed |
Methods inherited from interface com.sas.services.publish.EntryInterface |
---|
getDescription, getNameValuePairs, getURL, isReadOnly, setDescription, setNameValuePairs |
Constructor Detail |
---|
public ReferenceEntry() throws java.rmi.RemoteException
java.rmi.RemoteException
- If a network anomaly is encountered.protected ReferenceEntry(java.lang.Class theClass) throws java.rmi.RemoteException
theClass
- The class to use when determine which RMI socket
factories are to be used when exporting a remote object.
java.rmi.RemoteException
- If a network anomaly is encountered.public ReferenceEntry(java.lang.String reference, java.lang.String referenceType) throws java.rmi.RemoteException, java.lang.IllegalArgumentException
reference
- The reference which identifies some data or file that
is external to the package, such as a url.referenceType
- The type of reference. Support
reference types include HTML or URL.
java.rmi.RemoteException
- If a network anomaly is encountered.
java.lang.IllegalArgumentException
Method Detail |
---|
public java.lang.String getReference() throws java.rmi.RemoteException, TransportException
getReference
in interface ReferenceEntryInterface
String
The reference string for this entry.
TransportException
- If the transport encounters an error
getting the reference string.
java.rmi.RemoteException
- If a network anomaly is encountered.public void setReference(java.lang.String reference) throws java.rmi.RemoteException, java.lang.IllegalStateException
setReference
in interface ReferenceEntryInterface
reference
- The reference string for this entry.
java.lang.IllegalStateException
- If this entry is read only.
java.rmi.RemoteException
- If a network anomaly is encountered.public void setReferenceType(java.lang.String referenceType) throws java.lang.IllegalStateException, java.rmi.RemoteException
setReferenceType
in interface ReferenceEntryInterface
referenceType
- The type of refrence
ReferenceEntryInterface.URL_REFERENCE
or ReferenceEntryInterface.HTML_REFERENCE
java.lang.IllegalStateException
- If this entry is read only.
java.rmi.RemoteException
- If a network anomaly is encountered.public java.lang.String getReferenceType() throws java.rmi.RemoteException, TransportException
getReferenceType
in interface ReferenceEntryInterface
String
The type of refrence,
ReferenceEntryInterface.URL_REFERENCE
or ReferenceEntryInterface.HTML_REFERENCE
TransportException
- If the transport encounters an error
getting the reference type.
java.rmi.RemoteException
- If a network anomaly is encountered.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |