public static Identity createExtendedIdentifier ( String namespaceUri , String namespacePrefix , String identifierName , String attributeValue , String administrativeDomain ) { Document doc = mDocumentBuilder . newDocument ( ) ; Element e = doc . createElementNS ( namespaceUri , namespacePrefix + ":" + identifierName ) ; if ( attributeValue != null ) { e . setAttribute ( "name" , attributeValue ) ; } e . setAttribute ( "administrative-domain" , administrativeDomain ) ; doc . appendChild ( e ) ; try { return Identifiers . createExtendedIdentity ( doc ) ; } catch ( MarshalException e1 ) { IfmapJLog . error ( "document that contains the extended identifier can't be handled" ) ; throw new RuntimeException ( e1 ) ; } }
Creates an Extended Identifier .