Exemple #1
0
 protected List<Route> processRoutes(Node node) {
   XPathExpression expr =
       createXPathExpression(
           this.routeProcessorConfigurator.getRouteSelcetor(), namespaces.getNamespaces());
   if (expr == null) {
     return null;
   }
   List<Route> routeList;
   try {
     routeList = expr.evaluate(node, new RouteNodeMapper(routeProcessorConfigurator, namespaces));
     return routeList;
   } catch (XPathException e) {
     logger.error(e.getMessage());
     return null;
   }
 }
Exemple #2
0
 protected List<ServiceDeliveryPoint> processSDP(Node node) {
   XPathExpression expr =
       createXPathExpression(
           this.sdpProcessorConfigurator.getSdpSelector(), namespaces.getNamespaces());
   if (expr == null) {
     return null;
   }
   List<ServiceDeliveryPoint> sdpList;
   try {
     sdpList = expr.evaluate(node, new SdpNodeMapper(sdpProcessorConfigurator, namespaces));
     return sdpList;
   } catch (XPathException e) {
     logger.error(e.getMessage());
     return null;
   }
 }
Exemple #3
0
 protected List<Contact> processContacts(Node node) {
   XPathExpression expr =
       createXPathExpression(
           this.contactProcessorConfigurator.getContactSelector(), namespaces.getNamespaces());
   if (expr == null) {
     return null;
   }
   List<Contact> contactList;
   try {
     contactList =
         expr.evaluate(node, new ContactNodeMapper(contactProcessorConfigurator, namespaces));
     return contactList;
   } catch (XPathException e) {
     logger.error(e.getMessage());
     return null;
   }
 }
Exemple #4
0
 protected List<Account> processAccounts(Node node) {
   XPathExpression expr =
       createXPathExpression(
           this.accountProcessorConfigurator.getAccountSelector(), namespaces.getNamespaces());
   if (expr == null) {
     return null;
   }
   List<Account> accountList;
   try {
     accountList =
         expr.evaluate(node, new AccountNodeMapper(accountProcessorConfigurator, namespaces));
     return accountList;
   } catch (XPathException e) {
     logger.error(e.getMessage());
     return null;
   }
 }
Exemple #5
0
 protected List<MeterAsset> processMeterAssets(Node node) {
   XPathExpression expr =
       createXPathExpression(
           this.meterProcessorConfirugarator.getMeterAssetSelector(), namespaces.getNamespaces());
   if (expr == null) {
     return null;
   }
   List<MeterAsset> meterList;
   try {
     meterList =
         expr.evaluate(
             node, new MeterAssetNodeMapper(this.meterProcessorConfirugarator, namespaces));
     return meterList;
   } catch (XPathException e) {
     logger.error(e.getMessage());
     return null;
   }
 }
Exemple #6
0
 protected List<ServiceLocation> processServiceLocations(Node node) {
   XPathExpression expr =
       createXPathExpression(
           this.serviceLocationProcessorConfigurator.getServiceLocationSelector(),
           namespaces.getNamespaces());
   if (expr == null) {
     return null;
   }
   List<ServiceLocation> slList;
   try {
     slList =
         expr.evaluate(
             node,
             new ServiceLocationNodeMapper(serviceLocationProcessorConfigurator, namespaces));
     return slList;
   } catch (XPathException e) {
     logger.error(e.getMessage());
     return null;
   }
 }
Exemple #7
0
 protected List<SdpMeterAssociation> processSDPMeterAssetAssociations(Node node) {
   XPathExpression expr =
       createXPathExpression(
           this.associationProcessorConfigurator.getSdpMeterAssociationSelector(),
           namespaces.getNamespaces());
   if (expr == null) {
     return null;
   }
   List<SdpMeterAssociation> sdpMeterAssList;
   try {
     sdpMeterAssList =
         expr.evaluate(
             node,
             new SdpMeterAssociationNodeMapper(this.associationProcessorConfigurator, namespaces));
     return sdpMeterAssList;
   } catch (XPathException e) {
     logger.error(e.getMessage());
     return null;
   }
 }