@Override public boolean equals( Object object ) { LocaleType l = (LocaleType) object; return ( ( getDescription() == null && l.getDescription() == null ) || ( getDescription() != null && getDescription() .equals( l.getDescription() ) ) ) && ( ( getCode() == null && l.getCode() == null ) || ( getCode() != null && getCode().equals( l.getCode() ) ) ); } }
createTaggedValue( doc, "LOCALE_ORDER", "" + val++, idGen.getNextId() ) ); //$NON-NLS-1$ //$NON-NLS-2$ modelElement.appendChild( createTaggedValue( doc, "LOCALE_DESCRIPTION", localeType.getDescription(), idGen.getNextId() ) ); //$NON-NLS-1$ cwmParameter.appendChild( modelElement ); xmiContent.appendChild( cwmParameter );
LocaleInterface localeInterface = new LocaleMeta(); localeInterface.setCode( localeType.getCode() ); localeInterface.setDescription( localeType.getDescription() ); localeInterface.setOrder( order++ ); localeInterface.setActive( true );