Each Supplement object may contain three types of data: records, navigation references, and properties.
// Java example:
// Get record list from a Supplement
ERecList supRecs = sup.getERecs();
// Loop over the ERecList and get each record
for (int j=0; j<supRecs.size(); j++) {
ERec rec = (ERec)supRecs.get(j);
...
}
//.NET example:
// Get record list from a Supplement
ERecList supRecs = sup.ERecs;
// Loop over the ERecList and get each record
for (int j=0; j<supRecs.Count; j++) {
ERec rec = (ERec)supRecs[j];
...
}
// Java example:
// Get navigation reference list
NavigationRefsList refs = sup.getNavigationRefs();
// Loop over the references
for (int j=0; j<refs.size(); j++) {
DimValList ref = (DimValList)refs.get(j);
// Loop over dimension vals for each nav reference
for (int k=0; k<ref.size(); k++) {
DimVal val = (DimVal)ref.get(k);
...
}
}
// .NET example:
// Get navigation reference list
NavigationRefsList refs = sup.NavigationRefs;
// Loop over the references
for (int j=0; j<refs.Count; j++) {
DimValList dimref = (DimValList)refs[j];
// Loop over dimension vals for each nav reference
for (int k=0; k<dimref.Count; k++) {
DimVal val = (DimVal)dimref[k];
...
}
}
// Java example:
// Get property map from the Supplement
PropertyMap propsMap = sup.getProperties();
Iterator props = propsMap.entrySet().iterator();
// Loop over properties
while (props.hasNext()) {
// Get individual property
Property prop = (Property)props.next();
...
}
// .NET example:
// Get property map from the Supplement
PropertyMap propsMap2 = sup.Properties;
System.Collections.IList props = propsMap2.EntrySet;
// Loop over properties
for (int j =0; j < props.Count; j++) {
// Get individual property
Property prop = (Property)props[j];
...
}