Iterator iteraParent = parentMap.keySet().iterator();
if (iteraParent != null)
while (iteraParent.hasNext())
{
String id = (String) iteraParent.next();
FeatureRelation fr = (FeatureRelation) parentMap.get(id);
if (fr != null)
{
Feature iteraFeature = fr.getStartFeature();
stemp += "<a href='";
if (isForDict)
stemp += iteraFeature.getID();
else
{
stemp += iteraFeature.getName()+"@";
stemp += iteraFeature.getID();
stemp += ".html";
}
stemp += "'>";
stemp += iteraFeature.getName();
stemp += "</a> ";
}
}
}
instanceList.add(stemp);
//10 include
stemp = "";
Map incluMap = featureModel.getFeatureRelation(FeatureRelation.DECOMPOSE, feature, true);
if (incluMap != null)
{
Iterator iteraInclu = incluMap.keySet().iterator();
if (iteraInclu != null)
while (iteraInclu.hasNext())
{
String id = (String) iteraInclu.next();
FeatureRelation fr = (FeatureRelation) incluMap.get(id);
if (fr != null)
{
Feature incluFeature = fr.getEndFeature();
stemp += "<a href='";
if (isForDict)
stemp += incluFeature.getID();
else
{
stemp += incluFeature.getName()+"@";
stemp += incluFeature.getID();
stemp += ".html";
}
stemp += "'>";
stemp += incluFeature.getName();
stemp += "</a> ";
}
}
}
instanceList.add(stemp);
//11 dimensionValue
stemp = "";
Map dimenMap = featureModel.getFeatureRelation(FeatureRelation.ATTRIBUTE, feature, true);
if (dimenMap != null)
{
Iterator iteraDimen = dimenMap.keySet().iterator();
if (iteraDimen != null)
while (iteraDimen.hasNext())
{
String id = (String) iteraDimen.next();
FeatureRelation fr = (FeatureRelation) dimenMap.get(id);
if (fr != null)
{
Feature dimenFeature = fr.getEndFeature();
stemp += "<a href='";
if (isForDict)
stemp += dimenFeature.getID();
else
{
stemp += dimenFeature.getName()+"@";
stemp += dimenFeature.getID();
stemp += ".html";
}
stemp += "'>";
stemp += dimenFeature.getName();
stemp += "</a> ";
}
}
}
instanceList.add(stemp);
//12 requiring
stemp = "";
Map requiringMap = featureModel.getFeatureRelation(FeatureRelation.REQUIRE, feature, true);
if (requiringMap != null)
{
Iterator iteraRequire = requiringMap.keySet().iterator();
if (iteraRequire != null)
while (iteraRequire.hasNext())
{
String id = (String) iteraRequire.next();
FeatureRelation fr = (FeatureRelation) requiringMap.get(id);
if (fr != null)
{
Feature requiredFeature = fr.getEndFeature();
stemp += "<a href='";
if (isForDict)
stemp += requiredFeature.getID();
else
{
stemp += requiredFeature.getName()+"@";
stemp += requiredFeature.getID();
stemp += ".html";
}
stemp += "'>";
stemp += requiredFeature.getName();
stemp += "</a> ";
}
}
}
instanceList.add(stemp);
//12 requiring
stemp = "";
Map requiredMap = featureModel.getFeatureRelation(FeatureRelation.REQUIRE, feature, false);
if (requiredMap != null)
{
Iterator iteraRequired = requiredMap.keySet().iterator();
if (iteraRequired != null)
while (iteraRequired.hasNext())
{
String id = (String) iteraRequired.next();
FeatureRelation fr = (FeatureRelation) requiredMap.get(id);
if (fr != null)
{
Feature requiredFeature = fr.getStartFeature();
stemp += "<a href='";
if (isForDict)
stemp += requiredFeature.getID();
else
{
stemp += requiredFeature.getName()+"@"; //2004.6.2
stemp += requiredFeature.getID();
stemp += ".html";
}
stemp += "'>";
stemp += requiredFeature.getName();
stemp += "</a> ";
}
}
}
instanceList.add(stemp);
//13 mutex
stemp = "";
Map mutexMap = featureModel.getFeatureRelation(FeatureRelation.EXCLUDE, feature, true);
if (mutexMap != null)
{
Iterator iteraMutex = mutexMap.keySet().iterator();
if (iteraMutex != null)
while (iteraMutex.hasNext())
{
String id = (String) iteraMutex.next();
FeatureRelation fr = (FeatureRelation) mutexMap.get(id);
if (fr != null)
{
Feature mutexFeature = fr.getEndFeature();
stemp += "<a href='";
if (isForDict)
stemp += mutexFeature.getID();
else
{
stemp += mutexFeature.getName()+"@"; //5.7
stemp += mutexFeature.getID();
stemp += ".html";
}
stemp += "'>";
stemp += mutexFeature.getName();
stemp += "</a> ";
}
}
}
Map mutexdMap = featureModel.getFeatureRelation(FeatureRelation.EXCLUDE, feature, false);
if (mutexMap != null)
{
Iterator iteraMutexd = mutexdMap.keySet().iterator();
if (iteraMutexd != null)
while (iteraMutexd.hasNext())
{
String id = (String) iteraMutexd.next();
FeatureRelation fr = (FeatureRelation) mutexdMap.get(id);
if (fr != null)
{
Feature mutexFeature = fr.getStartFeature();
stemp += "<a href='";
if (isForDict)
stemp += mutexFeature.getID();
else