public interface IDocumentVersionSupportGEN
extends java.io.Serializable
When the object is about to be saved to the stream, a check is made to see if the object implements this interface. If it does, a check will be made to ensure that the object is supported for a particular ArcGIS version.
Use IDocumentVersionSupportGEN when extending ArcGIS with new objects that may be persisted in the document stream. If you implement IPersistStream or IPersistStreamVariant on a new custom object you should also implement IDocumentVersionSupportGEN.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convertToSupportedObject(int docVersion)
Convert the object to another object that is supported.
|
boolean |
isSupportedAtVersion(int docVersion)
Is this object valid at the given document version.
|
boolean isSupportedAtVersion(int docVersion) throws java.io.IOException, AutomationException
Use IsSupportedAtVersion to identify if a particular object should be saved to the ObjectStream. This result is based on the esriArcGISVersion enumeration. In some instances, if the object is not supported at a particular ArcGIS version, the object may support conversion to another similar object; use IDocumentVersionSupportGEN::ConvertToSupportedObject to accomplish this.
docVersion
- A com.esri.arcgis.system.esriArcGISVersion constant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.java.lang.Object convertToSupportedObject(int docVersion) throws java.io.IOException, AutomationException
This method should be used when IDocumentVersionSupportGEN::IsSupportedAtVersion returns FALSE. Calling ConvertToSupportedObject will return an IUnknown pointer to a relevant object supported at the particular ArcGIS version. Not all objects will return a supported object; in these cases a null pointer will be returned.
docVersion
- A com.esri.arcgis.system.esriArcGISVersion constant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.