Altova MapForce 2025 Enterprise Edition

com.[YourSchema].[YourSchemaType].MemberElement

Home Prev Top Next

When code is generated from an XML schema, a class with the following members is created for each member element of a type. In the descriptions below, "MemberType" stands for the type of the member element itself.

 

Methods


Name

Description

ic_java_public_member

MemberType append()

Creates a new element and appends it to its parent.

ic_java_public_member

MemberType appendWithPrefix(String prefix)

Creates a new element having the prefix supplied as argument, and appends it to its parent. For an example, see Example: Purchase Order.

ic_java_public_member

MemberType at(int index)

Returns the instance of the member element at the specified index.

ic_java_public_member

int count()

Returns the count of elements.

ic_java_public_member

boolean exists()

Returns true if at least one element exists.

ic_java_public_member

MemberType first()

Returns the first instance of the member element.

ic_java_public_member

int getEnumerationValue()

Generated for enumeration types only. Returns one of the constants generated for the possible values, or Invalid if the value does not match any of the enumerated values in the schema.

ic_java_public_member

com.altova.xml.meta.Element getInfo()

Returns an object for querying schema information (see com.altova.xml.meta.Element ).

ic_java_public_member

MemberType getValue()

Gets the element content (only generated if element can have simple or mixed content).

ic_java_public_member

java.util.Iterator iterator()

Returns an object for iterating instances of the member element.

ic_java_public_member

MemberType last()

Returns the last instance of the member element.

ic_java_public_member

void remove()

Deletes all occurrences of the element from its parent.

ic_java_public_member

void removeAt(int index)

Deletes the occurrence of the element specified by the index.

ic_java_public_member

void setEnumerationValue(int index)

Generated for enumeration types only. Pass one of the constants generated for the possible values to this method to set the value.

ic_java_public_member

void setValue(MemberType value)

Sets the element content (only generated if element can have simple or mixed content).

© 2018-2024 Altova GmbH