Sequenceablepublic class Form extends Object implements Sequenceable
The basic data structure provides details about a form, including the form ID,
form name, and the bundle name of the application serving as the form provider.
For detailed information about a form, see ProviderFormInfo.
SystemCapability.Aafwk#ABILITYSequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static Sequenceable.Producer<Form> |
PRODUCER |
Creates a
Form object from a Parcel object. |
| 构造器 | 说明 |
|---|---|
Form() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static Form |
createFromParcel(Parcel parcel) |
Creates a
Form object from a specified Parcel object. |
String |
getAbilityName() |
Obtains the class name of the ability to which this
Form belongs. |
String |
getBundleName() |
Obtains the application bundle name of the Feature Ability (FA) to which this
Form belongs. |
Component |
getComponent() |
Obtains the
Component data of this Form. |
int |
getFormId() |
已过时。
This change is effective since API version 5. Replaced by
getId(). |
String |
getFormName() |
Obtains the name of this
Form. |
long |
getId() |
Obtains the ID of this
Form. |
String |
getOriginalBundleName() |
Obtains the application bundle name of the Feature Ability (FA) to which this
Form belongs. |
boolean |
getTempFormFlag() |
Checks whether this form is a temporary form.
|
boolean |
marshalling(Parcel out) |
Marshals this
Form object into a Parcel object. |
String |
toString() |
Returns a string representation of the object.
|
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Form object from a Parcel object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasFileDescriptorpublic static final Sequenceable.Producer<Form> PRODUCER
Form object from a Parcel object. This constant is used together with
marshalling(ohos.utils.Parcel) and is the encapsulation of the unmarshalling(ohos.utils.Parcel) method.public static Form createFromParcel(Parcel parcel)
Form object from a specified Parcel object. This method is used
together with Parcel.writeSequenceable(Sequenceable) and is the encapsulation of
the Parcel.readSequenceable(Sequenceable) method.parcel - Indicates the Parcel object from which data of the new Form object is read.Form object.Parcel.writeSequenceable(ohos.utils.Sequenceable)public Component getComponent()
Component data of this Form.Component object.public String getBundleName()
Form belongs.public String getOriginalBundleName()
Form belongs.public long getId()
Form.@Deprecated public int getFormId()
getId().Form. Compatible with int form id.public String getAbilityName()
Form belongs.public String getFormName()
Form.public boolean getTempFormFlag()
true if this form is a temporary form; returns false otherwise.AbilitySlice.PARAM_FORM_TEMPORARY_KEYpublic boolean marshalling(Parcel out)
Form object into a Parcel object.marshalling 在接口中 Sequenceableout - Indicates the Parcel object for marshalling.true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
Form object from a Parcel object.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object for unmarshalling.true if the unmarshalling is successful; returns false otherwise.public String toString()
ObjecttoString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())