Author: tchemit Date: 2010-08-12 17:00:46 +0200 (Thu, 12 Aug 2010) New Revision: 952 Url: http://nuiton.org/repositories/revision/eugene/952 Log: reformat code Modified: trunk/eugene/src/main/java/org/nuiton/eugene/models/object/xml/ObjectModelElementImpl.java Modified: trunk/eugene/src/main/java/org/nuiton/eugene/models/object/xml/ObjectModelElementImpl.java =================================================================== --- trunk/eugene/src/main/java/org/nuiton/eugene/models/object/xml/ObjectModelElementImpl.java 2010-08-12 14:51:27 UTC (rev 951) +++ trunk/eugene/src/main/java/org/nuiton/eugene/models/object/xml/ObjectModelElementImpl.java 2010-08-12 15:00:46 UTC (rev 952) @@ -25,39 +25,46 @@ package org.nuiton.eugene.models.object.xml; +import org.apache.commons.lang.StringUtils; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.nuiton.eugene.models.object.ObjectModelElement; + import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; -import org.apache.commons.lang.StringUtils; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.nuiton.eugene.models.object.ObjectModelElement; - /** * ObjectModelElementImpl. * * @author chatellier * @author cedric * @version $Revision$ - * - * Last update : $Date$ - * By : */ + * <p/> + * Last update : $Date$ + * By : + */ public class ObjectModelElementImpl implements ObjectModelElement { /** logger */ private static final Log log = LogFactory.getLog(ObjectModelElementImpl.class); protected ObjectModelImpl objectModelImpl; + protected ObjectModelElement declaringElement; protected String name; + protected boolean isStatic; + protected String documentation; + protected List<String> stereotypes; + protected Map<String, String> tagValues; + protected List<String> comments; public ObjectModelElementImpl() { @@ -66,22 +73,19 @@ comments = new ArrayList<String>(); } - /** - * @param objectModelImpl the objectModelImpl - */ + /** @param objectModelImpl the objectModelImpl */ public void setObjectModelImpl(ObjectModelImpl objectModelImpl) { this.objectModelImpl = objectModelImpl; } - /** - * @param declaringElement the declaringElement to set - */ + /** @param declaringElement the declaringElement to set */ public void setDeclaringElement(ObjectModelElement declaringElement) { this.declaringElement = declaringElement; } /** * TODO a tester + * * @return the objectModel */ public ObjectModelImpl getModel() { @@ -140,9 +144,9 @@ @Override public String getDocumentation() { - if (documentation == null && hasTagValue("documentation")) { - return getTagValue("documentation"); - } + if (documentation == null && hasTagValue("documentation")) { + return getTagValue("documentation"); + } return documentation; } @@ -183,11 +187,11 @@ /** * Adds the given {@code value} associated to the {@code tagValue}. - * + * <p/> * Note: If a previous tag value was definied, then it will be replaced. * * @param tagValue the name of the tag value - * @param value the value to associate + * @param value the value to associate * @since 2.1.2 */ public void addTagValue(String tagValue, String value) { @@ -195,7 +199,7 @@ if (StringUtils.isNotEmpty(oldValue)) { log.warn("Replace tagValue '" + tagValue + "' (old:" + oldValue + ", new: " + value + ")"); } - tagValues.put(tagValue,value); + tagValues.put(tagValue, value); } @Override