private String parse ( DocumentContext document ) throws ParseException { if ( document . namespaceDeclaration ( ) != null ) { setCurrentNamespace ( document . namespaceDeclaration ( ) . qualifiedIdentifier ( ) . value ) ; } else { setCurrentNamespace ( "" ) ; } setCurrentImports ( document . importDeclarations ( ) ) ; NamedDataSchema schema = parseNamedType ( document . namedTypeDeclaration ( ) ) ; topLevelSchemas . add ( schema ) ; return schema . getFullName ( ) ; }
Parse list of Data objects .