Пример #1
0
/*
 * Accepts the given NUMLVisitor.
 */
bool
NUMLDocument::accept (NUMLVisitor& v) const
{
  v.visit(*this);
//  if (mModel) mModel->accept(v);
  v.leave(*this);

  return true;
}
/*
 * Accepts the given NUMLVisitor.
 *
 * @return the result of calling <code>v.visit()</code>, which indicates
 * whether or not the Visitor would like to visit the NUML Doc's next
 * AtomicDescription (if available).
 */
bool
AtomicDescription::accept (NUMLVisitor& v) const
{
  return v.visit(*this);
}
bool
CompositeDescription::accept(NUMLVisitor& v) const
{
  v.visit(*this);
  return true;
}
Пример #4
0
/*
 * Accepts the given NUMLVisitor.
 *
 * @return the result of calling <code>v.visit()</code>, which indicates
 * whether or not the Visitor would like to visit the NUML Doc's next
 * OntologyTerm (if available).
 */
bool
OntologyTerm::accept (NUMLVisitor& v) const
{
  return v.visit(*this);
}