def _buildMetadata(self, parse_remote_metadata=False):
self.updateSequence = self._capabilities.attrib.get('<STR_LIT>')<EOL>val = self._capabilities.find(util.nspath_eval('<STR_LIT>', namespaces))<EOL>if val is not None:<EOL><INDENT>self.identification=ServiceIdentification(val,self.owscommon.namespace)<EOL><DEDENT>val = self._capabilities.find(util.nspath_eval('<STR_LIT>', namespaces))<EOL>if val is not None:<EOL><INDENT>self.provider=ServiceProvider(val,self.owscommon.namespace)<EOL><DEDENT>self.operations=[]<EOL>for elem in self._capabilities.findall(util.nspath_eval('<STR_LIT>', namespaces)):<EOL><INDENT>self.operations.append(OperationsMetadata(elem, self.owscommon.namespace))<EOL><DEDENT>self.constraints = {}<EOL>for elem in self._capabilities.findall(util.nspath_eval('<STR_LIT>', namespaces)):<EOL><INDENT>self.constraints[elem.attrib['<STR_LIT:name>']] = Constraint(elem, self.owscommon.namespace)<EOL><DEDENT>self.parameters = {}<EOL>for elem in self._capabilities.findall(util.nspath_eval('<STR_LIT>', namespaces)):<EOL><INDENT>self.parameters[elem.attrib['<STR_LIT:name>']] = Parameter(elem, self.owscommon.namespace)<EOL><DEDENT>val = self._capabilities.find(util.nspath_eval('<STR_LIT>', namespaces))<EOL>self.filters=FilterCapabilities(val)<EOL>self.contents={}<EOL>features = self._capabilities.findall(nspath_eval('<STR_LIT>', namespaces))<EOL>for feature in features:<EOL><INDENT>cm=ContentMetadata(feature, parse_remote_metadata)<EOL>self.contents[cm.id]=cm<EOL><DEDENT>self.exceptions = [f.text for fin self._capabilities.findall('<STR_LIT>')]<EOL>
set up capabilities metadata objects: