public class OnshapeDocument extends Object
| Constructor | Description |
|---|---|
OnshapeDocument() |
Create a null instance, for deserialization purposes
|
OnshapeDocument(String url) |
Parse the given URL to determine document id, workspace id, and element
id.
|
OnshapeDocument(String documentId,
String workspaceId,
String elementId) |
Create a new instance from a document id, workspace id, and element id.
|
OnshapeDocument(String documentId,
String workspaceId,
String versionId,
String microversionId,
String elementId) |
Create a new instance using all possible options, used internally by
response objects.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object obj) |
|
String |
getBaseURL() |
Get the base URL, typically https://cad.onshape.com
|
String |
getDocumentId() |
Get the document id.
|
String |
getElementId() |
Get the element id.
|
String |
getMicroversionId() |
Get the microversion id.
|
String |
getVersionId() |
Get the version id.
|
VM |
getVM() |
Gets the choice of VM (Version, Microversion)
|
String |
getVMId() |
Gets either Version or Microversion, depending on VM variable
|
WM |
getWM() |
Gets the choice of WM (Workspace, Microversion)
|
String |
getWMId() |
Gets either Workspace or Microversion, depending on WM variable
|
String |
getWorkspaceId() |
Get the workspace id.
|
WV |
getWV() |
Gets the choice of WV (Workspace, Version)
|
String |
getWVId() |
Gets either Workspace or Version, depending on WV variable
|
WVM |
getWVM() |
Gets the choice of WVM (Workspace, Version, Microversion)
|
String |
getWVMId() |
Gets either Workspace, Version or Microversion, depending on WVM variable
|
int |
hashCode() |
|
String |
toString() |
public OnshapeDocument()
public OnshapeDocument(String url) throws OnshapeException
url - A URL from the Onshape web application.OnshapeException - If the URL cannot be parsed.public OnshapeDocument(String documentId, String workspaceId, String elementId)
documentId - Document id.workspaceId - Workspace id.elementId - Element id.public OnshapeDocument(String documentId, String workspaceId, String versionId, String microversionId, String elementId)
documentId - Document id.workspaceId - Workspace id.versionId - Version id.microversionId - Microversion id.elementId - Element id.public String getBaseURL()
public String getDocumentId()
public String getWorkspaceId()
public WVM getWVM()
public WV getWV()
public WM getWM()
public VM getVM()
public String getWVMId()
public String getWVId()
public String getWMId()
public String getVMId()
public String getVersionId()
public String getMicroversionId()
public String getElementId()
Copyright © 2021. All rights reserved.