public final class ImportObject
extends java.lang.Object
Constructor and Description |
---|
ImportObject(java.lang.Long id,
java.lang.String uuid,
java.lang.String datatypeName,
LocaleString nameLocalized,
java.lang.Long type,
java.util.Locale locale,
java.lang.Throwable throwable) |
ImportObject(java.lang.Object id,
java.lang.String uuid,
java.lang.String datatypeName,
LocaleString nameLocalized,
java.lang.Long type,
java.util.Locale locale,
java.lang.Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsError(ErrorCode ec)
Checks whether a particular error was thrown while inspecting or importing this object.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getErrorMessage(java.util.Locale targetLocale)
Returns the localized error message as it is displayed in Appian interfaces.
|
java.lang.Throwable |
getException()
The exception thrown while inspecting or importing this object, if any.
|
java.lang.Long |
getId()
Deprecated.
use
getObjectId() |
java.lang.String |
getName()
The name of the imported or inspected object using the system locale.
|
java.lang.String |
getName(java.util.Locale targetLocale)
The name of the imported or inspected object based on a custom locale.
|
java.lang.Object |
getObjectId()
The ID of type Object of the imported or inspected object.
|
java.lang.Long |
getType()
The type of the imported object.
|
java.lang.String |
getUuid()
The universal identifier of the imported or inspected object.
|
int |
hashCode() |
java.lang.String |
toString() |
public ImportObject(java.lang.Long id, java.lang.String uuid, java.lang.String datatypeName, LocaleString nameLocalized, java.lang.Long type, java.util.Locale locale, java.lang.Throwable throwable)
public ImportObject(java.lang.Object id, java.lang.String uuid, java.lang.String datatypeName, LocaleString nameLocalized, java.lang.Long type, java.util.Locale locale, java.lang.Throwable throwable)
@Deprecated public java.lang.Long getId()
getObjectId()
The ID will be null if the object does not exist on the system or is not of the type Long. If the object has an id that is not of type Long, use getObjectId instead. For inspect, this is any object that would be created. For both inspect and import, this is also any object that would have been created but failed instead.
public java.lang.Object getObjectId()
For any object that does not exist on the system, ID will be null. For inspect, this is any object that would be created. For both inspect and import, this is also any object that would have been created but failed instead.
public java.lang.String getUuid()
public java.lang.String getName()
public java.lang.String getName(java.util.Locale targetLocale)
targetLocale
- Locale of desired output name.public java.lang.Long getType()
AppianType
. Compare the result of getType() to
AppianType by using getType().intValue() == AppianType.THE_TYPE_CONSTANT.public java.lang.Throwable getException()
public boolean containsError(ErrorCode ec)
ec
- ErrorCode object to check against.public java.lang.String getErrorMessage(java.util.Locale targetLocale)
targetLocale
- locale of the error message to retrieve.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.