public void parseProperty ( Element propertyElement , ActivityImpl activity ) { String id = propertyElement . attribute ( "id" ) ; String name = propertyElement . attribute ( "name" ) ; // If name isn't given, use the id as name if ( name == null ) { if ( id == null ) { addError ( "Invalid property usage on line " + propertyElement . getLine ( ) + ": no id or name specified." , propertyElement ) ; } else { name = id ; } } String type = null ; parsePropertyCustomExtensions ( activity , propertyElement , name , type ) ; }
Parses one property definition .