"> "> ]> Root package = Root package dir= Model package = Model = -- Generating Java code for model . -- last modification date of the UML model package = 1 0 1 0 1 0 Opening file import ; 1 0 1 0 Opening file DataType Object package ; import java.util.Date; import java.util.List; import java.util.ArrayList; import java.util.Map; import javax.persistence.*; import javax.xml.bind.annotation.*; import static .ModelVersion.LAST_MODIFICATION_DATE; import .MetadataElement; import .Reference; import .Metadata; /** * UML &bl; : * * * * @author generated by UML2 Generator tool (UML->XMI->XSLT->java code) */ public&bl;abstract&bl;class &bl; extends extends Metadata &bl;{ /** serial uid = last modification date of the UML model */ private static final long serialVersionUID = LAST_MODIFICATION_DATE; /** * Creates a new */ public () { super(); } /** * Creates a new for the given Container Entity. <br> * * The Parent Container CAN NOT BE NULL * * @param pContainer the parent container CAN NOT BE NULL */ public (final pContainer) { super(); this.setContainer(pContainer); } /** * Creates a new for the given Container Entity. <br> * * The Parent Container CAN NOT BE NULL * * @param pContainer the parent container CAN NOT BE NULL */ public (final pContainer) { super(pContainer); } /** * Returns the Container Entity == 'Parent' * @return the parent container Entity */ public getContainer() { return this.container; } /** * Sets the Container Entity == 'Parent' ONLY * @param pContainer the parent container */ private void setContainerField(final pContainer) { this.container = pContainer; } /** * Sets the Container Entity == 'Parent' and adds this to the appropriate collection on the container. * * @param pContainer the parent container CAN NOT BE NULL * * @throws IllegalStateException if pContainer is null ! */ protected void setContainer(final pContainer) { if (pContainer == null) { throw new IllegalStateException("The parent container can not be null !"); } setContainerField(pContainer); pContainer.add(this); } /** * Returns the Rank in the collection * @return rank */ public int getRank() { return this.rank; } /** * Sets the Rank * @param pRank rank in the parent collection */ public void setRank(final int pRank) { this.rank = pRank; } /** * Returns Jpa version for optimistic locking * @return jpa version number */ protected int getJpaVersion() { return this.jpaVersion; } /** * Returns Class type (discriminator value) in inheritance hierarchy * @return class type */ protected String getClassType() { return this.classType; } /** * Returns the property value given the property name.
* Can be any property (internal, attribute, reference, collection) and all type must be supported (dataType, * objectType, enumeration) * * @param propertyName name of the property (like in UML model) * * @return property value or null if unknown or not defined */ @Override public Object getProperty(final String propertyName) { // first : checks if propertyName is null or empty : if (propertyName == null) { return null; } // second : search in parent classes (maybe null) : Object res = super.getProperty(propertyName); if (PROPERTY_CONTAINER.equals(propertyName)) { return getContainer(); } if (PROPERTY_RANK.equals(propertyName)) { return Integer.valueOf(getRank()); } return res; } /** * Sets the property value to the given property name.
* Can be any property (internal, attribute, reference, collection) and all type must be supported (dataType, * objectType, enumeration) * * @param propertyName name of the property (like in UML model) * * @param value to be set * * @return true if property has been set */ @Override public boolean setProperty(final String propertyName, final Object value) { // first : checks if propertyName is null or empty : if (propertyName == null) { return false; } // second : search in parent classes (maybe null) : boolean res = super.setProperty(propertyName, value); if (!res) { if (PROPERTY_CONTAINER.equals(propertyName)) { setContainerField(() value); return true; } if (PROPERTY_RANK.equals(propertyName)) { setRank(((Integer)value).intValue()); return true; } } return res; } /** * Sets all Reference fields to their appropriate value.<br/> */ @Override protected void prepareReferencesForMarshalling() { super.prepareReferencesForMarshalling(); if(get() != null) { this.p_ = get().asReference(); if(get().get_state().isToBeMarshalled()) get().setXmlId(); } } /** * Resets all Reference fields to null.<br/> */ @Override protected void resetReferencesAfterMarshalling() { super.prepareReferencesForMarshalling(); this.p_ = null; } /** * Puts the string representation in the given string buffer : <br> * "Type =[class name @ hashcode] : { field name = field value , ...}" * * @param sb given string buffer to fill * @param isDeep true means to call deepToString(sb, true, ids) for all attributes / references / collections which are * MetadataElement implementations * @param ids identity map to avoid cyclic loops * * @return stringbuffer the given string buffer filled with the string representation */ @Override protected StringBuilder deepToString(final StringBuilder sb, final boolean isDeep, final Map<MetadataElement, Object> ids) { super.deepToString(sb, isDeep, ids); sb.append("\n[ "); sb.append("={"); sb.append("container="); if (getContainer() != null) { // short toString : MetadataElement.deepToString(sb, false, ids, getContainer()); } sb.append(" | "); return sb.append("} ]"); } }
Opening file package ; import javax.persistence.*; import javax.xml.bind.annotation.*; /** * UML Enumeration : * * * * @author generated by UML2 Generator tool (UML->XMI->XSLT->java code) */ public enum &bl;{ /** string representation */ private final String value; /** * Creates a new Enumeration Literal * * @param v string representation */ (final String v) { value = v; } /** * Returns string representation * @return string representation */ public final String value() { return this.value; } /** * Returns Enumeration Literal corresponding to the given string representation * * @param v string representation * * @return value Enumeration Literal * * @throws IllegalArgumentException if string representation not found */ public final static fromValue(final String v) { for ( c : .values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(".fromValue : unknown value : " + v); } } /** * Attribute : * * ( * Multiplicity : * , MaxLength : * ) */ private &bl;; /** * Returns Attribute * @return Attribute */ public &bl;get() { return this.; } /** * Defines Attribute * @param p value to set */ public void set(final p) { this. = p; } if ("".equals(propertyName)) { set(()value); return true; } /** * Collection : * * ( * Multiplicity : * ) */ private List<>&bl; = null; /** * Returns Collection * @return Collection */ public List<>&bl;get() { return this.; } /** * Defines Collection * @param p collection to set */ public void set(final List<> p) { this. = p; } /** * Add a to the collection * @param p&bl; to add */ public void add(final p) { if(this. == null) { this. = new ArrayList<>(); } final int rank = this..size(); p.setRank(rank); this..add(p); } /** * Reference : * * ( * Multiplicity : * ) */ private &bl; = null; /** * "lazy" version of the reference. * Used by XML (un)marshallers to resolve possibly inderectly referenced resource . */ protected Reference&bl;p_ = null; /** * Returns Reference
* If the variable is null but its "lazy" version * p_ is not, that lazy reference will be resolved to the actual object. * @return Reference */ public &bl;get() { return ()super.get(); if(this. == null && this.p_ != null) { this. = ()resolve(this.p_, .class); } return this.; } /** * Defines Reference * @param p reference to set */ public void set(final p) { super.set(p); this. = p; }
if ("".equals(propertyName)) { set(()value); return true; } if ("Ref".equals(propertyName)) { // sets JAXB Reference Field this.p_ = newReference((MetadataObject)value); return true; } /** * Value : * * */ ("") , ; &cr; sb.append("="); if (get() != null) { MetadataElement.deepToString(sb, isDeep, ids, get()); } sb.append(", "); if ("".equals(propertyName)) { return get(); } TODO : Missing description : please, update your UML model asap. Opening file package ; /** * Version class for : * * * * @author generated by UML2 Generator tool (UML->XMI->XSLT->java code) */ public final class ModelVersion { /** last modification date of the UML model */ public final static long LAST_MODIFICATION_DATE = l; private ModelVersion() { // forbidden constructor } } Opening file Package Information &cr; Boolean Short Integer Long Float Double Double Date java.lang.String java.lang.String . .