/// /// <summary> * (9) get attribute ValueUsage </summary> /// * <returns> the value of the attribute </returns> /// public virtual EnumValueUsage getValueUsage() { return(EnumValueUsage.getEnum(getAttribute(AttributeName.VALUEUSAGE, null, null))); }
static JDFAutoValue() { atrInfoTable[0] = new AtrInfoTable(AttributeName.ALLOWEDVALUE, 0x22222221, AttributeInfo.EnumAttributeType.string_, null, null); atrInfoTable[1] = new AtrInfoTable(AttributeName.PRESENTVALUE, 0x44444431, AttributeInfo.EnumAttributeType.string_, null, null); atrInfoTable[2] = new AtrInfoTable(AttributeName.VALUEUSAGE, 0x33333311, AttributeInfo.EnumAttributeType.enumeration, EnumValueUsage.getEnum(0), null); atrInfoTable[3] = new AtrInfoTable(AttributeName.VALUE, 0x22222222, AttributeInfo.EnumAttributeType.string_, null, null); elemInfoTable[0] = new ElemInfoTable(ElementName.LOC, 0x33333311); }
// --------------------------------------------------------------------- // Methods for Attribute ValueUsage // --------------------------------------------------------------------- /// /// <summary> * (5) set attribute ValueUsage </summary> /// * <param name="enumVar">: the enumVar to set the attribute to </param> /// public virtual void setValueUsage(EnumValueUsage enumVar) { setAttribute(AttributeName.VALUEUSAGE, enumVar == null ? null : enumVar.getName(), null); }