- }\r
-\r
- /**\r
- * Returns the value of field 'content'. The field 'content'\r
- * has the following description: internal content storage\r
- * \r
- * @return the value of field 'Content'.\r
- */\r
- public java.lang.String getContent(\r
- ) {\r
- return this._content;\r
- }\r
-\r
- /**\r
- * Returns the value of field 'id'. The field 'id' has the\r
- * following description: Primary Key for vamsas object\r
- * referencing \r
- * \r
- * @return the value of field 'Id'.\r
- */\r
- public java.lang.String getId(\r
- ) {\r
- return this._id;\r
- }\r
-\r
- /**\r
- * Method getRefs.\r
- * \r
- * @param index\r
- * @throws java.lang.IndexOutOfBoundsException if the index\r
- * given is outside the bounds of the collection\r
- * @return the value of the java.lang.Object at the given index\r
- */\r
- public java.lang.Object getRefs(\r
- final int index)\r
- throws java.lang.IndexOutOfBoundsException {\r
- // check bounds for index\r
- if (index < 0 || index >= this._refs.size()) {\r
- throw new IndexOutOfBoundsException("getRefs: Index value '" + index + "' not in range [0.." + (this._refs.size() - 1) + "]");\r
- }\r
- \r
- return _refs.get(index);\r
- }\r
-\r
- /**\r
- * Method getRefs.Returns the contents of the collection in an\r
- * Array. <p>Note: Just in case the collection contents are\r
- * changing in another thread, we pass a 0-length Array of the\r
- * correct type into the API call. This way we <i>know</i>\r
- * that the Array returned is of exactly the correct length.\r
- * \r
- * @return this collection as an Array\r
- */\r
- public java.lang.Object[] getRefs(\r
- ) {\r
- java.lang.Object[] array = new java.lang.Object[0];\r
- return (java.lang.Object[]) this._refs.toArray(array);\r
- }\r
-\r
- /**\r
- * Method getRefsAsReference.Returns a reference to '_refs'. No\r
- * type checking is performed on any modifications to the\r
- * Vector.\r
- * \r
- * @return a reference to the Vector backing this class\r
- */\r
- public java.util.Vector getRefsAsReference(\r
- ) {\r
- return this._refs;\r
- }\r
-\r
- /**\r
- * Method getRefsCount.\r
- * \r
- * @return the size of this collection\r
- */\r
- public int getRefsCount(\r
- ) {\r
- return this._refs.size();\r
- }\r
-\r
- /**\r
- * Overrides the java.lang.Object.hashCode method.\r
- * <p>\r
- * The following steps came from <b>Effective Java Programming\r
- * Language Guide</b> by Joshua Bloch, Chapter 3\r
- * \r
- * @return a hash code value for the object.\r
- */\r
- public int hashCode(\r
- ) {\r
- int result = super.hashCode();\r
- \r
- long tmp;\r
- if (_content != null) {\r
- result = 37 * result + _content.hashCode();\r
- }\r
- if (_id != null) {\r
- result = 37 * result + _id.hashCode();\r
- }\r
- if (_refs != null) {\r
- result = 37 * result + _refs.hashCode();\r
+ if (this._id != null) {\r
+ if (temp._id == null)\r
+ return false;\r
+ if (this._id != temp._id) {\r
+ thcycle = org.castor.util.CycleBreaker.startingToCycle(this._id);\r
+ tmcycle = org.castor.util.CycleBreaker.startingToCycle(temp._id);\r
+ if (thcycle != tmcycle) {\r
+ if (!thcycle) {\r
+ org.castor.util.CycleBreaker.releaseCycleHandle(this._id);\r
+ }\r
+ ;\r
+ if (!tmcycle) {\r
+ org.castor.util.CycleBreaker.releaseCycleHandle(temp._id);\r
+ }\r
+ ;\r
+ return false;\r
+ }\r
+ if (!thcycle) {\r
+ if (!this._id.equals(temp._id)) {\r
+ org.castor.util.CycleBreaker.releaseCycleHandle(this._id);\r
+ org.castor.util.CycleBreaker.releaseCycleHandle(temp._id);\r
+ return false;\r
+ }\r
+ org.castor.util.CycleBreaker.releaseCycleHandle(this._id);\r
+ org.castor.util.CycleBreaker.releaseCycleHandle(temp._id);\r
+ }\r