ParcelableEx, Sequenceablepublic class ElementNameEx extends Object implements Sequenceable, ParcelableEx
Ability information, which uniquely identifies an ability.
In an Ohos process, your ability basic information is stored in a ElementNameEx object. This object
will be marshalled and then transmitted to a process in another platform. After receiving the marshalled object,
that process will unmarshal it and then read the data.Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static Sequenceable.Producer<ElementNameEx> |
PRODUCER |
Creates a
ElementNameEx instance from a Parcel. |
| 构造器 | 说明 |
|---|---|
ElementNameEx() |
Default constructor used to create an
ElementNameEx instance. |
ElementNameEx(String bundleName,
String abilityName) |
A parameterized constructor used to create an
ElementNameEx instance. |
ElementNameEx(ElementName elementName) |
A parameterized constructor used to create an
ElementNameEx instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getAbilityName() |
Obtains the name of an ability.
|
String |
getBundleName() |
Obtains the bundle name of an ability.
|
ElementName |
getElementName() |
Obtains the ElementName from this ElementNameEx.
|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
void |
marshallingEx(Parcel out) |
Writes a
ParcelableEx object into a Parcel. |
void |
setAbilityName(String abilityName) |
Sets the ability name.
|
void |
setBundleName(String bundleName) |
Sets the bundle name for an ability.
|
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitunmarshallingExhasFileDescriptorpublic static final Sequenceable.Producer<ElementNameEx> PRODUCER
ElementNameEx instance from a Parcel.public ElementNameEx()
ElementNameEx instance.public ElementNameEx(String bundleName, String abilityName)
ElementNameEx instance.bundleName - Indicates the name of the bundle to which the specified ability belongs.abilityName - Indicates the ability name.public ElementNameEx(ElementName elementName)
ElementNameEx instance.elementName - Indicates the ElementName.public void setBundleName(String bundleName)
bundleName - Indicates the bundle name for the ability.public String getAbilityName()
public void setAbilityName(String abilityName)
abilityName - Indicates the name of the ability.public String getBundleName()
public ElementName getElementName()
public boolean marshalling(Parcel out)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceableout - Indicates the Parcel object to which the Sequenceable
object will be marshaled..true if the marshalling is successful; returns false otherwise.Sequenceable.marshalling(Parcel)public boolean unmarshalling(Parcel in)
SequenceableSequenceable object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object into which the Sequenceable
object has been marshaled.true if the unmarshalling is successful; returns false otherwise.Sequenceable.unmarshalling(Parcel)public void marshallingEx(Parcel out)
ParcelableExParcelableEx object into a Parcel.marshallingEx 在接口中 ParcelableExout - Indicates the Parcel object to which the ParcelableEx object will be written.ParcelableEx.marshallingEx(Parcel)