com.[YourSchema].[YourSchemaType].MemberAttribute

www.altova.com このトピックを印刷 前のページ 1つ上のレベル 次のページ

ホーム >  Code Generator > Reference to Generated Classes (Java) >

com.[YourSchema].[YourSchemaType].MemberAttribute

When code is generated from an XML schema, a class is created for each member attribute of a type. In the descriptions below, "AttributeType" stands for the type of the member attribute itself.

 

Methods


Name

Description

ic_java_public_member

boolean exists()

Returns true if the attribute exists.

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.Attribute getInfo()

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

ic_java_public_member

AttributeType getValue()

Gets the attribute value.

ic_java_public_member

void remove()

Removes the attribute from its parent element.

ic_java_public_member

void setEnumerationValue(int)

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(AttributeType value)

Sets the attribute value.


(C) 2019 Altova GmbH