Skip to content
Snippets Groups Projects
Commit 31df1645 authored by Dominique Marcadet's avatar Dominique Marcadet
Browse files

check for presence of depending NS in findXXX()

parent 69d3bab5
No related branches found
No related tags found
1 merge request!6Resolve "add needed services in NsdResourceSet"
......@@ -1675,7 +1675,9 @@ public class NSImpl extends CopyrightedImpl implements NS {
if( found != null ) return found;
}
if( isSetDependsOn() ) {
// Look for in NS referred by DependsOn
// Warning: NS referred by DependsOn may not be loaded
if( isSetDependsOn() && ( getDependsOn().isSetRefersToNS() )) {
getDependsOn().buildExplicitLinks( console );
return getDependsOn().getRefersToNS().findCDC( cDCName, console );
}
......@@ -1696,7 +1698,9 @@ public class NSImpl extends CopyrightedImpl implements NS {
if( found != null ) return found;
}
if( isSetDependsOn() ) {
// Look for in NS referred by DependsOn
// Warning: NS referred by DependsOn may not be loaded
if( isSetDependsOn() && ( getDependsOn().isSetRefersToNS() )) {
getDependsOn().buildExplicitLinks( console );
return getDependsOn().getRefersToNS().findPresenceCondition( presenceConditionName, console );
}
......@@ -1719,7 +1723,9 @@ public class NSImpl extends CopyrightedImpl implements NS {
if( found != null ) return found;
}
if( isSetDependsOn() ) {
// Look for in NS referred by DependsOn
// Warning: NS referred by DependsOn may not be loaded
if( isSetDependsOn() && ( getDependsOn().isSetRefersToNS() )) {
getDependsOn().buildExplicitLinks( console );
return getDependsOn().getRefersToNS().findFunctionalConstraint( functionalConstraintAbbreviation, console );
}
......@@ -1740,7 +1746,9 @@ public class NSImpl extends CopyrightedImpl implements NS {
if( found != null ) return found;
}
if( isSetDependsOn() ) {
// Look for in NS referred by DependsOn
// Warning: NS referred by DependsOn may not be loaded
if( isSetDependsOn() && ( getDependsOn().isSetRefersToNS() )) {
getDependsOn().buildExplicitLinks( console );
return getDependsOn().getRefersToNS().findEnumeration( enumerationName, console );
}
......@@ -1761,7 +1769,9 @@ public class NSImpl extends CopyrightedImpl implements NS {
if( found != null ) return found;
}
if( isSetDependsOn() ) {
// Look for in NS referred by DependsOn
// Warning: NS referred by DependsOn may not be loaded
if( isSetDependsOn() && ( getDependsOn().isSetRefersToNS() )) {
getDependsOn().buildExplicitLinks( console );
return getDependsOn().getRefersToNS().findBasicType( basicTypeName, console );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment